Commit ae00cdbd by 杨树贤

修复请求问题

parent ccfc551a
Showing with 1 additions and 3 deletions
......@@ -155,7 +155,7 @@ class SkuApiController extends Controller
public function syncErpRate($request)
{
$url = 'http://cron.liexin.net/ajax/quickExecTask';
$url = 'http://crons.ichunt.net/ajax/quickExecTask';
$data = [
'id' => '62a94bc6be29d122655f4782',
'job_name' => '基石同步ERP美金汇率',
......@@ -167,9 +167,7 @@ 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