|
@@ -290,8 +290,7 @@ class PurchaseLogic
|
|
|
public static function offlineOrderRefund($order_id,$reason)
|
|
|
{
|
|
|
$ret = ['code'=>200,'msg'=>'ok'];
|
|
|
- $order_info = OfflineOrderRefund::with('orderItem')->where('id',$order_id)->find()->toArray();
|
|
|
- var_dump($order_info);
|
|
|
+ $order_info = OfflineOrder::with('orderItem')->where('id',$order_id)->find()->toArray();
|
|
|
if(in_array($order_info['refund_status'],[1,2])) return ['code'=>201,'订单已申请退款'];
|
|
|
Db::startTrans();
|
|
|
try {
|