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
28b9b00e
authored
Aug 15, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
邮箱修改
parent
2bd34044
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/Http/Controllers/Api/ExternalApiController.php
app/Http/Services/SupplierApplyService.php
app/Http/Controllers/Api/ExternalApiController.php
View file @
28b9b00e
...
...
@@ -91,7 +91,7 @@ class ExternalApiController extends Controller
$supplier
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$data
[
'supplier_name'
])
->
first
()
->
toArray
();
//还要发邮件
$data
[
'data'
][
'title'
]
=
"供应商:
{
$supplier
[
'supplier_name'
]
}
,供应商编码:
{
$supplier
[
'supplier_code'
]
}
;申请了芯链入驻,请在三个工作日内,前往【供应商系统-芯链入驻申请】页面进行审核操作;"
;
(
new
MessageService
())
->
sendMessage
(
'supplier_apply_admin_notify'
,
$data
,
'
qiang
@ichunt.com'
,
true
);
(
new
MessageService
())
->
sendMessage
(
'supplier_apply_admin_notify'
,
$data
,
'
vendor
@ichunt.com'
,
true
);
$this
->
externalResponse
(
0
,
'申请供应商成功'
);
}
}
app/Http/Services/SupplierApplyService.php
View file @
28b9b00e
...
...
@@ -120,9 +120,9 @@ class SupplierApplyService
}
//无论是否通过,都要发短信通知
if
(
$status
==
SupplierApplyModel
::
STATUS_REJECT
)
{
$message
=
"${apply['contact_name']} 先生/女生您好,您的“芯链入驻申请”已收到,审核结果为:不通过,原因为:${auditReason},如对审核结果有疑问,可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:
qiang
@ichunt.com"
;
$message
=
"${apply['contact_name']} 先生/女生您好,您的“芯链入驻申请”已收到,审核结果为:不通过,原因为:${auditReason},如对审核结果有疑问,可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:
vendor
@ichunt.com"
;
}
else
{
$message
=
"${apply['contact_name']} 先生/女生您好,您的“芯链入驻申请”已收到,审核结果为:通过,芯链登录网址:http://xinlian.ichunt.com,您的芯链登录账号:${apply['mobile']},初始密码:123456,请在登录芯链后修改密码,后续有任何疑问都可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:
qiang
@ichunt.com;"
;
$message
=
"${apply['contact_name']} 先生/女生您好,您的“芯链入驻申请”已收到,审核结果为:通过,芯链登录网址:http://xinlian.ichunt.com,您的芯链登录账号:${apply['mobile']},初始密码:123456,请在登录芯链后修改密码,后续有任何疑问都可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:
vendor
@ichunt.com;"
;
}
$data
=
[];
$data
[
'data'
][
'title'
]
=
$message
;
...
...
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