xieruidong преди 2 години
родител
ревизия
95f08f9ffd
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      application/common/command/TakeCashQueryCommand.php

+ 3 - 1
application/common/command/TakeCashQueryCommand.php

@@ -30,7 +30,9 @@ class TakeCashQueryCommand extends Command{
                 list($succ,$data)=$class->checkDetail($cash['order_no'],$cash['detail_no']);
                 if(in_array($data['detail_status'],['SUCCESS','PROCESSING'])){
                     $cash['check_status']=$data['detail_status']=='SUCCESS'?1:2;
-                    $cash['check_data']=$data['fail_reason']??json_encode($data,256);
+                    if($cash['check_status']==2) {
+                        $cash['check_data'] = $data['fail_reason'] ?? json_encode($data, 256);
+                    }
                     if($cash['check_status']==2){
                         User::money($this['amount'],$cash['user_id'],MoneyLog::TYPE_TAKECASH_REJECT,'提现打款失败');
                     }