|
|
@@ -245,8 +245,17 @@ class HuolalaAdapter extends Huolala implements Adapter
|
|
|
];
|
|
|
}
|
|
|
|
|
|
- public function cancelOrder($orderUuid, $reason)
|
|
|
+ public function cancelOrder($orderUuid, $post)
|
|
|
{
|
|
|
+ if(isset($post['order_cancel_reason']) && $post['order_cancel_reason'] != ''){
|
|
|
+ $reason = $post['order_cancel_reason'];
|
|
|
+ }else{
|
|
|
+ return [
|
|
|
+ 'code' => -1,
|
|
|
+ 'msg' => '取消原因描述参数出错'
|
|
|
+ ];
|
|
|
+ }
|
|
|
+
|
|
|
$res = $this->selectOrder($orderUuid);
|
|
|
if ($res['ret'] != 0) {
|
|
|
new \Exception('查询订单详情失败, code=' . $res['ret'] . ', msg=' . $res['msg']);
|