Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
semour
/
semour_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
415d30a3
authored
Nov 30, 2022
by
肖康
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'dev/ver/1.0.0' of
http://git.ichunt.net/semour/semour_web
into dev/ver/1.0.0
parents
46e60f0d
03fa1041
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
.env
app/Http/Controllers/Api/AuthApiController.php
app/Http/Controllers/UserController.php
app/Http/Services/UserService.php
.env
View file @
415d30a3
...
@@ -13,6 +13,13 @@ DB_DATABASE=semour
...
@@ -13,6 +13,13 @@ DB_DATABASE=semour
DB_USERNAME=semour
DB_USERNAME=semour
DB_PASSWORD='semour#zsyM'
DB_PASSWORD='semour#zsyM'
DB_CMS_CONNECTION=web
DB_CMS_HOST=192.168.1.238
DB_CMS_PORT=3306
DB_CMS_DATABASE=icdata
DB_CMS_USERNAME=icdata
DB_CMS_PASSWORD='icdata#zsyM'
BROADCAST_DRIVER=log
BROADCAST_DRIVER=log
CACHE_DRIVER=file
CACHE_DRIVER=file
QUEUE_CONNECTION=sync
QUEUE_CONNECTION=sync
...
...
app/Http/Controllers/Api/AuthApiController.php
View file @
415d30a3
...
@@ -225,7 +225,7 @@ class AuthApiController extends Controller
...
@@ -225,7 +225,7 @@ class AuthApiController extends Controller
// return $this->setError('Email code send failed');
// return $this->setError('Email code send failed');
// }
// }
return
$this
->
setSuccess
(
'
Email code send success
'
.
$code
);
return
$this
->
setSuccess
(
'
A verification code has been sent. Please enter the code below to continue.
'
.
$code
);
}
}
}
}
app/Http/Controllers/UserController.php
View file @
415d30a3
...
@@ -24,7 +24,7 @@ class UserController extends Controller
...
@@ -24,7 +24,7 @@ class UserController extends Controller
public
function
inquiry
(
Request
$request
)
public
function
inquiry
(
Request
$request
)
{
{
$userId
=
$_COOKIE
[
'sem_user_id'
]
;
$userId
=
\Auth
::
id
()
;
//获取不同状态的统计
//获取不同状态的统计
$statusCount
=
InquiryService
::
getStatusCount
(
$userId
);
$statusCount
=
InquiryService
::
getStatusCount
(
$userId
);
return
view
(
'user.inquiry'
,
compact
(
'statusCount'
));
return
view
(
'user.inquiry'
,
compact
(
'statusCount'
));
...
...
app/Http/Services/UserService.php
View file @
415d30a3
...
@@ -32,7 +32,7 @@ class UserService
...
@@ -32,7 +32,7 @@ class UserService
'company_name'
=>
$data
[
'company_name'
],
'company_name'
=>
$data
[
'company_name'
],
'account_properties'
=>
$data
[
'account_properties'
],
'account_properties'
=>
$data
[
'account_properties'
],
'sale_id'
=>
$salesId
,
'sale_id'
=>
$salesId
,
'sale_name'
=>
\Arr
::
get
(
$sales
,
'name'
),
'sale_name'
=>
\Arr
::
get
(
$sales
,
'name'
,
''
),
'create_time'
=>
time
(),
'create_time'
=>
time
(),
'password'
=>
Hash
::
make
(
$data
[
'password'
]),
'password'
=>
Hash
::
make
(
$data
[
'password'
]),
]);
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment