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
224ac646
authored
Mar 11, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化提示
parent
907b326a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
app/Http/Controllers/Api/SupplierApiController.php
app/Http/Controllers/Api/SupplierContactApiController.php
app/Http/Controllers/Api/SupplierApiController.php
View file @
224ac646
...
@@ -520,7 +520,7 @@ class SupplierApiController extends Controller
...
@@ -520,7 +520,7 @@ class SupplierApiController extends Controller
}
else
if
(
$channelUserType
==
SupplierContactModel
::
CHANNEL_USER_TYPE_INVENTORY
)
{
}
else
if
(
$channelUserType
==
SupplierContactModel
::
CHANNEL_USER_TYPE_INVENTORY
)
{
$service
=
new
SupplierContactService
();
$service
=
new
SupplierContactService
();
if
(
!
$service
->
validateDataFollowerDepartment
(
$channelUid
))
{
if
(
!
$service
->
validateDataFollowerDepartment
(
$channelUid
))
{
$this
->
response
(
-
1
,
'数据跟单员必须属于部门
ID为113或137的部门
'
);
$this
->
response
(
-
1
,
'数据跟单员必须属于部门
(新质供应链部/跟单数据组 | 商品供应链部/数据跟单组)
'
);
}
}
$check
=
$adminService
->
checkIsResignedByCodeId
(
$channelUid
);
$check
=
$adminService
->
checkIsResignedByCodeId
(
$channelUid
);
if
(
$check
)
{
if
(
$check
)
{
...
...
app/Http/Controllers/Api/SupplierContactApiController.php
View file @
224ac646
...
@@ -132,7 +132,7 @@ class SupplierContactApiController extends Controller
...
@@ -132,7 +132,7 @@ class SupplierContactApiController extends Controller
//如果channel_user_type=4,那么就要校验当前can_check_uids的部门id是否是113或137
//如果channel_user_type=4,那么就要校验当前can_check_uids的部门id是否是113或137
if
(
$data
[
'channel_user_type'
]
==
4
)
{
if
(
$data
[
'channel_user_type'
]
==
4
)
{
if
(
!
$service
->
validateDataFollowerDepartment
(
$data
[
'can_check_uids'
]))
{
if
(
!
$service
->
validateDataFollowerDepartment
(
$data
[
'can_check_uids'
]))
{
$this
->
response
(
-
1
,
'数据跟单员必须属于部门
ID为113或137的部门
'
);
$this
->
response
(
-
1
,
'数据跟单员必须属于部门
(新质供应链部/跟单数据组 | 商品供应链部/数据跟单组)
'
);
}
}
}
}
...
...
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