|
|
|
@ -47,12 +47,13 @@ class OrderStateHandle extends RowAction |
|
|
|
return $this->response()->success('操作成功')->refresh(); |
|
|
|
}elseif ($state==9){//同意退款
|
|
|
|
$order = $orderMain::where('id',$id)->first(); |
|
|
|
|
|
|
|
$result = json_decode(Rpc::orderRefund($order->global_order_id,$order->user_id),true)['result']; |
|
|
|
if ($result['code']!=0){ |
|
|
|
if (isset($result['code'])&&$result['code']!=0){ |
|
|
|
Log::error('订单退款接口调用失败',$result); |
|
|
|
return $this->response()->error('操作失败')->refresh(); |
|
|
|
return $this->response()->error($result['message'])->refresh(); |
|
|
|
} |
|
|
|
return $this->response()->success('操作成功')->refresh(); |
|
|
|
return $this->response()->success($result['message'])->refresh(); |
|
|
|
} |
|
|
|
$res = $orderMain->modifyState($id,$state); |
|
|
|
if ($res==true){ |
|
|
|
|