544782275@qq.com 3 years ago
parent
commit
1fbd75f7d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/store/controller/Order.php

+ 1 - 1
application/store/controller/Order.php

@@ -361,7 +361,7 @@ class Order extends Controller
             }
             if($refund_success == 1){
                 //更改退款状态
-                Db::name('store_order')->where('id',$id)->update(array('refund_at'=>date('Y-m-d H:i:s'),'status'=>4,'refund_price'=>$post['amount']));
+                Db::name('store_order')->where('id',$post['id'])->update(array('refund_at'=>date('Y-m-d H:i:s'),'status'=>4,'refund_price'=>$post['amount']));
                 $this->success('退款成功');
             }else{
                 $this->error('退款失败');