Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
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
3ea7e31e
authored
Apr 26, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化逻辑
parent
d87b5672
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
app/Http/Services/SupplierApplyService.php
app/Http/Services/SupplierApplyService.php
View file @
3ea7e31e
...
@@ -86,10 +86,11 @@ class SupplierApplyService
...
@@ -86,10 +86,11 @@ class SupplierApplyService
'audit_uid'
=>
request
()
->
user
->
userId
,
'audit_uid'
=>
request
()
->
user
->
userId
,
]);
]);
$apply
=
SupplierApplyModel
::
where
(
'id'
,
$applyId
)
->
first
()
->
toArray
();
$apply
=
SupplierApplyModel
::
where
(
'id'
,
$applyId
)
->
first
()
->
toArray
();
if
(
$result
)
{
if
(
$result
)
{
if
(
$status
==
SupplierApplyModel
::
STATUS_PASS
)
{
$existAccount
=
SupplierAccountModel
::
where
(
'supplier_code'
,
$apply
[
'supplier_code'
])
->
exists
();
$existAccount
=
SupplierAccountModel
::
where
(
'supplier_code'
,
$apply
[
'supplier_code'
])
->
exists
();
//如果没有供应商账号,那么就要新增供应商账号
//如果没有供应商账号,那么就要新增供应商账号
if
(
!
$existAccount
)
{
if
(
$existAccount
)
{
SupplierAccountModel
::
where
(
'supplier_code'
,
$apply
[
'supplier_code'
])
->
update
([
SupplierAccountModel
::
where
(
'supplier_code'
,
$apply
[
'supplier_code'
])
->
update
([
'mobile'
=>
$apply
[
'mobile'
],
'mobile'
=>
$apply
[
'mobile'
],
'email'
=>
$apply
[
'email'
],
'email'
=>
$apply
[
'email'
],
...
@@ -115,7 +116,7 @@ class SupplierApplyService
...
@@ -115,7 +116,7 @@ class SupplierApplyService
'source'
=>
2
,
'source'
=>
2
,
]);
]);
}
}
}
//无论是否通过,都要发短信通知
//无论是否通过,都要发短信通知
if
(
$status
==
SupplierApplyModel
::
STATUS_REJECT
)
{
if
(
$status
==
SupplierApplyModel
::
STATUS_REJECT
)
{
$message
=
"${apply['contact_name']} 先生/女生您好,您的“云芯入驻申请”已收到,审核结果为:不通过,原因为:${auditReason},如对审核结果有疑问,可联系您在猎芯的专属渠道经理(周强),联系电话:13512343214,联系邮箱:qiang@ichunt.com"
;
$message
=
"${apply['contact_name']} 先生/女生您好,您的“云芯入驻申请”已收到,审核结果为:不通过,原因为:${auditReason},如对审核结果有疑问,可联系您在猎芯的专属渠道经理(周强),联系电话:13512343214,联系邮箱:qiang@ichunt.com"
;
...
...
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