Browse Source

sunguidong

zhangguidong 2 years ago
parent
commit
aac0bde32b
1 changed files with 4 additions and 1 deletions
  1. 4 1
      application/admin/controller/Goodorder.php

+ 4 - 1
application/admin/controller/Goodorder.php

@@ -106,7 +106,10 @@ class Goodorder extends Backend
                     // 可在此处传入其他参数,详细参数见微信支付文档
                     'refund_desc' => '退款',
                 ]);
-                print_r($result);print_r(111);die;
+                if($result['return_code']=='FAIL'){
+                    $this->error($result['return_msg'],'index');
+                }
+
 
                 $this->model->save(['status'=>7],['id'=>$ids]);
                 $this->success('退款成功', 'index');