作者 王智

xiugai

... ... @@ -258,9 +258,8 @@ class GuanYiCloud extends Api
}
//获取订单oid
public function GetOrderOid()
public function GetOrderOid($OrderSn)
{
$OrderSn = input('order');
$data = array();
$data['appkey'] = APPKEY;
$data['sessionkey'] = SESSIONKEY;
... ... @@ -269,9 +268,10 @@ class GuanYiCloud extends Api
// $date['receiver_mobile']='15928552965';
$data['sign'] = $this->sign($data, SECRET);
$Array = json_decode(json_encode(json_decode($this->mycurl(URL, $data))), true);
dump($Array);
die;
dump($Array['orders'][0]['details'][0]['refund']);
//验证
if (empty($Array['orders'])) {
$this->error('获取订单失败:平台单号' . $OrderSn);
}
}
... ...
... ... @@ -280,6 +280,8 @@ class Order extends Api
'updatetime' => time()
]
);
$GuanYiCloud = new GuanYiCloud();
$GuanYiCloud->GetOrderOid($params['OrderSn']);
if (!$res2) {
$this->error('订单状态更改失败', 0);
die;
... ...