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
d016b2dc
authored
Apr 07, 2025
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
设置华云
parent
15f55169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Model/SupplierContactModel.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
d016b2dc
...
...
@@ -481,6 +481,18 @@ class SupplierApiController extends Controller
}
$service
=
new
SupplierService
();
$result
=
$service
->
allocateChannelUser
(
$supplierId
,
$channelUid
,
$channelUserType
);
}
else
if
(
$channelUserType
==
SupplierContactModel
::
CHANNEL_USER_TYPE_IEDGE
)
{
$check
=
$adminService
->
checkIsResignedByCodeId
(
$channelUid
);
if
(
$check
)
{
$this
->
response
(
-
1
,
'该采购员已经离职,请选择其他人员'
);
}
$contactModel
=
new
SupplierContactModel
();
$contact
=
$contactModel
->
where
(
'supplier_id'
,
$supplierId
)
->
where
(
'channel_user_type'
,
$channelUserType
)
->
where
(
'can_check_uids'
,
$channelUid
)
->
first
();
if
(
$contact
)
{
$this
->
response
(
-
1
,
'该供应商已经存在同名的华云采购员,请选择其他人员'
);
}
$service
=
new
SupplierService
();
$result
=
$service
->
allocateChannelUser
(
$supplierId
,
$channelUid
,
$channelUserType
);
}
else
{
$check
=
$adminService
->
checkIsResignedByCodeId
(
$channelUid
);
if
(
$check
)
{
...
...
app/Model/SupplierContactModel.php
View file @
d016b2dc
...
...
@@ -13,6 +13,7 @@ class SupplierContactModel extends Model
const
CHANNEL_USER_TYPE_LIEXIN
=
1
;
const
CHANNEL_USER_TYPE_JD
=
2
;
const
CHANNEL_USER_TYPE_IEDGE
=
3
;
public
function
AddInfo
(
$SupplierID
=
''
,
$data
=
''
)
{
...
...
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