作者 耿培杰

修改删除订单

@@ -1585,12 +1585,12 @@ class Order extends Api @@ -1585,12 +1585,12 @@ class Order extends Api
1585 $userModel = new \app\api\model\User(); 1585 $userModel = new \app\api\model\User();
1586 if ($orderInfo['pay_type'] == 1){ 1586 if ($orderInfo['pay_type'] == 1){
1587 //微信退款 1587 //微信退款
1588 - $result = $pay->refund($orderInfo['order_num'],$orderInfo['pay_total'],$refund_note,$orderInfo['goods_total']); 1588 + $result = $pay->refundGoods($orderInfo['order_num'],$orderInfo['pay_total'],$orderInfo['id'],$refund_note,$orderInfo['goods_total']);
1589 }else{ 1589 }else{
1590 //余额退款 1590 //余额退款
1591 - $result = $userModel->refund($orderInfo['user_id'],$orderInfo['goods_total'],$orderInfo['id'],$refund_note); 1591 + $result = $userModel->refundGoods($orderInfo['user_id'],$orderInfo['goods_total'],$orderInfo['id'],$refund_note);
1592 } 1592 }
1593 - $msg = '确认收货'; 1593 + $msg = '退款';
1594 }else{ 1594 }else{
1595 //提交审核 1595 //提交审核
1596 $result = $orderInfoModel->where('id',$order_info_id)->update(['status'=>'2','refund_note'=>$refund_note,'refund_time' => time()]); 1596 $result = $orderInfoModel->where('id',$order_info_id)->update(['status'=>'2','refund_note'=>$refund_note,'refund_time' => time()]);
@@ -27,7 +27,7 @@ class Order extends Model @@ -27,7 +27,7 @@ class Order extends Model
27 27
28 public function getStatusList() 28 public function getStatusList()
29 { 29 {
30 - return ['-1' => '已取消', '1' => '待支付', '2' => '待发货', '3' => '待收货', '4' => '待评价', '5' => '已完成', '6' => '待成团', '8' => '已退款', '10' => '待审核']; 30 + return ['-1' => '已取消', '1' => '待支付', '2' => '待发货', '3' => '待收货', '4' => '待评价', '5' => '已完成', '6' => '待成团', '7' => '退款中', '8' => '已退款', '10' => '待审核'];
31 } 31 }
32 32
33 public function getStatusTextAttr($value, $data) 33 public function getStatusTextAttr($value, $data)