作者 王智

xiugai

... ... @@ -268,36 +268,23 @@ 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);
//验证
// if (empty($Array['orders'])) {
// $this->error('获取订单失败:平台单号' . $OrderSn);
// }
dump($Array['orders'][0]['details'][0]['refund']);
// $delivery_state = $Array['orders'][0]['delivery_state'];
// $refund = $Array['orders'][0]['details'][0]['refund'];
// $platform_code = $Array['orders'][0]['platform_code'];
// if (!empty($Array['orders'][0]['deliverys'])) {
// $express_name = $Array['orders'][0]['deliverys'][0]['express_name'];
// $express_code = $Array['orders'][0]['deliverys'][0]['express_code'];
// $mail_no = $Array['orders'][0]['deliverys'][0]['mail_no'];
// } else {
// $express_name = '';
// $express_code = '';
// $mail_no = '';
// }
// $Return = [
// //发货状态 0-未发货//1-部分发货//2-全部发货
// 'delivery_state' => $delivery_state,
// //平台单号
// 'platform_code' => $platform_code,
// //快递公司名称
// 'express_name' => $express_name,
// //快递公司代码
// 'express_code' => $express_code,
// //快递单号
// 'mail_no' => $mail_no
// ];
// $Json = json_encode($Return);
// return $Json;
}
//获取订单oid
public function OrderUpdate()
{
$OrderSn = input('order');
$data = array();
$data['appkey'] = APPKEY;
$data['sessionkey'] = SESSIONKEY;
$data['method'] = 'gy.erp.trade.refund.update';
$data['tid'] = $OrderSn;
$data['refund_state'] = 2;
// $date['receiver_mobile']='15928552965';
$data['sign'] = $this->sign($data, SECRET);
$Array = json_decode(json_encode(json_decode($this->mycurl(URL, $data))), true);
dump($Array);
}
}
\ No newline at end of file
... ...