Commit 958e98a5 by 杨树贤

fix

parent ab14ff13
Showing with 3 additions and 1 deletions
......@@ -155,7 +155,7 @@ class SkuApiController extends Controller
public function syncErpRate($request)
{
$url = 'http://crons.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, '请求同步成功');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment