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
f026c128
authored
Jun 07, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改通知字眼
parent
ba0b83c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
app/Http/Controllers/Api/ExternalApiController.php
app/Http/Services/SupplierApplyService.php
app/Http/Controllers/Api/ExternalApiController.php
View file @
f026c128
...
...
@@ -81,7 +81,7 @@ class ExternalApiController extends Controller
//判断这个手机号对应的云芯账号是否已经存在
$existAccount
=
SupplierAccountModel
::
where
(
'mobile'
,
$data
[
'mobile'
])
->
exists
();
if
(
$existAccount
)
{
$this
->
externalResponse
(
-
1
,
'该手机号已经有对应的
云芯
账号,请重新选择手机号'
);
$this
->
externalResponse
(
-
1
,
'该手机号已经有对应的
芯链
账号,请重新选择手机号'
);
}
$result
=
(
new
SupplierApplyService
())
->
applySupplier
(
$data
);
if
(
!
$result
)
{
...
...
@@ -89,7 +89,7 @@ class ExternalApiController extends Controller
}
$supplier
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$data
[
'supplier_name'
])
->
first
()
->
toArray
();
//还要发邮件
$data
[
'data'
][
'title'
]
=
"供应商:
{
$supplier
[
'supplier_name'
]
}
,供应商编码:
{
$supplier
[
'supplier_code'
]
}
;申请了
云芯入驻,请在三个工作日内,前往【供应商系统-云芯
入驻申请】页面进行审核操作;"
;
$data
[
'data'
][
'title'
]
=
"供应商:
{
$supplier
[
'supplier_name'
]
}
,供应商编码:
{
$supplier
[
'supplier_code'
]
}
;申请了
芯链入驻,请在三个工作日内,前往【供应商系统-芯链
入驻申请】页面进行审核操作;"
;
(
new
MessageService
())
->
sendMessage
(
'supplier_apply_admin_notify'
,
$data
,
'qiang@ichunt.com'
,
true
);
$this
->
externalResponse
(
0
,
'申请供应商成功'
);
}
...
...
app/Http/Services/SupplierApplyService.php
View file @
f026c128
...
...
@@ -40,7 +40,7 @@ class SupplierApplyService
$existSupplierApply
=
SupplierApplyModel
::
where
(
'supplier_id'
,
$supplier
[
'supplier_id'
])
->
whereIn
(
'status'
,
[
SupplierApplyModel
::
STATUS_NEED_AUDIT
,
SupplierApplyModel
::
STATUS_PASS
])
->
exists
();
if
(
$existSupplierApply
)
{
return
'贵司已申请
云芯
入驻,无需重复申请'
;
return
'贵司已申请
芯链
入驻,无需重复申请'
;
}
//再去判断是否有上传sku
$uploadedSku
=
$supplier
[
'uploaded_sku'
];
...
...
@@ -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,联系邮箱:qiang@ichunt.com"
;
}
else
{
$message
=
"${apply['contact_name']} 先生/女生您好,您的“
云芯入驻申请”已收到,审核结果为:通过,云芯登录网址:http://yunxin.ichunt.com,您的云芯登录账号:${apply['mobile']},初始密码:123456,请在登录云芯
后修改密码,后续有任何疑问都可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:qiang@ichunt.com;"
;
$message
=
"${apply['contact_name']} 先生/女生您好,您的“
芯链入驻申请”已收到,审核结果为:通过,芯链登录网址:http://xinlian.ichunt.com,您的芯链登录账号:${apply['mobile']},初始密码:123456,请在登录芯链
后修改密码,后续有任何疑问都可联系您在猎芯的专属渠道经理(周强),联系电话:13427991931,联系邮箱:qiang@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