...
|
...
|
@@ -158,7 +158,15 @@ class AdminOrderController extends AdminBaseController |
|
|
curl_setopt($ch, CURLOPT_POST, 1);//post提交方式
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($send));
|
|
|
$res = curl_exec($ch);//运行curl
|
|
|
|
|
|
if($res::errcode() == 0){
|
|
|
echo "<pre/>";
|
|
|
print_r('1');
|
|
|
die;
|
|
|
}else{
|
|
|
echo "<pre/>";
|
|
|
print_r('2');
|
|
|
die;
|
|
|
}
|
|
|
|
|
|
// $a = file_get_contents($res);
|
|
|
echo "<pre/>";
|
...
|
...
|
|