Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
04330a89
Commit
04330a89
authored
Jul 29, 2023
by
hj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
abdc4464
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
server/app/Http/Controllers/V1/Chemsite/CustomerController.php
...r/app/Http/Controllers/V1/Chemsite/CustomerController.php
+1
-1
server/app/Services/ThirdPlatform/ThirdPlatformService.php
server/app/Services/ThirdPlatform/ThirdPlatformService.php
+3
-6
No files found.
server/app/Http/Controllers/V1/Chemsite/CustomerController.php
View file @
04330a89
...
...
@@ -29,7 +29,7 @@ class CustomerController extends Controller
public
function
getCustomer
(
Request
$request
)
{
$customerCode
=
$request
->
get
(
'cus
tomer_c
ode'
);
$customerCode
=
$request
->
get
(
'cus
C
ode'
);
if
(
!
$customerCode
){
return
Response
::
ok
(
'客户编号不存在!'
);
}
...
...
server/app/Services/ThirdPlatform/ThirdPlatformService.php
View file @
04330a89
...
...
@@ -31,15 +31,12 @@ class ThirdPlatformService extends PlatformAbstractService
if
(
$platformInfo
[
'platform_type'
]
==
'self'
){
$params
=
$platformInfo
[
'platform_params'
];
if
(
empty
(
$params
))
return
true
;
if
(
!
empty
(
$params
[
'whiteList'
])){
if
(
in_array
(
$ip
,
$params
[
'whiteList'
])){
return
true
;
}
if
(
!
empty
(
$params
[
'whiteList'
])
&&
in_array
(
$ip
,
$params
[
'whiteList'
])){
return
true
;
}
return
false
;
}
else
{
return
true
;
}
return
true
;
}
public
function
createPlatformToken
(
$platformName
)
...
...
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