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
958e98a5
authored
Nov 02, 2022
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
ab14ff13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
app/Http/Controllers/Api/SkuApiController.php
app/Http/Controllers/Api/SkuApiController.php
View file @
958e98a5
...
...
@@ -155,7 +155,7 @@ class SkuApiController extends Controller
public
function
syncErpRate
(
$request
)
{
$url
=
'http://cron
s.ichunt
.net/ajax/quickExecTask'
;
$url
=
'http://cron
.liexin
.net/ajax/quickExecTask'
;
$data
=
[
'id'
=>
'62a94bc6be29d122655f4782'
,
'job_name'
=>
'基石同步ERP美金汇率'
,
...
...
@@ -167,7 +167,9 @@ class SkuApiController extends Controller
$skey
=
$request
->
cookie
(
'oa_skey'
)
?:
$request
->
header
(
'oa_skey'
);
$cookie
=
'oa_user_id='
.
$userId
.
'; oa_skey='
.
$skey
;
$result
=
curl
(
$url
,
$data
,
true
,
1
,
$cookie
);
dd
(
$result
);
$result
=
json_decode
(
$result
,
true
);
dd
(
$result
);
if
(
!
empty
(
$result
)
&&
$result
[
'err_code'
]
==
0
)
{
$this
->
response
(
0
,
'请求同步成功'
);
}
...
...
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