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
53652d51
authored
Aug 05, 2021
by
mushishixian
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
审核转正
parent
1859d837
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
app/Http/Services/SupplierShareApplyService.php
app/Http/Services/SupplierShareApplyService.php
View file @
53652d51
...
...
@@ -6,6 +6,7 @@ namespace App\Http\Services;
//后台用户相关信息服务
use
App\Http\Transformers\SupplierShareApplyTransformer
;
use
App\Model\SupplierChannelModel
;
use
App\Model\SupplierShareApplyModel
;
//用于判断是否已经查看的服务
...
...
@@ -140,6 +141,11 @@ class SupplierShareApplyService
if
(
$statusName
==
'pass'
)
{
$contactService
=
new
SupplierContactService
();
$contactService
->
createContactByChannelUid
(
$apply
[
'supplier_id'
],
$apply
[
'apply_code_id'
]);
//然后自动转正
$supplierModel
=
new
SupplierChannelModel
();
$supplier
=
$supplierModel
->
where
(
'supplier_id'
,
$apply
[
'supplier_id'
])
->
first
()
->
toArray
();
$supplierService
=
new
SupplierService
();
$supplierService
->
autoChangeIsType
(
$supplier
);
}
}
return
$applyModel
->
where
(
'id'
,
$id
)
->
update
(
$apply
);
...
...
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