stanley-king 7 years ago
parent
commit
cf66ec7fe9
1 changed files with 9 additions and 8 deletions
  1. 9 8
      helper/fcode/operator.php

+ 9 - 8
helper/fcode/operator.php

@@ -170,13 +170,14 @@ class operator
     public static function reset($pay_sn)
     {
         $mod_fcode = Model('goods_fcode');
-        $ret = $mod_fcode->where(['pay_sn' => $pay_sn,'fc_state' => 3])->update(['fc_state' => 0,
-            'usable_time' => 0,
-            'mobile' => '',
-            'session_id' => '',
-            'grab_state' => 0,
-            'grab_time' => 0,
-            'pay_sn' => 0]);
+        $ret = $mod_fcode->where(['pay_sn' => $pay_sn,'fc_state' => 3])
+            ->update(['fc_state' => 0,
+                      'usable_time' => 0,
+                      'mobile' => '',
+                      'session_id' => '',
+                      'grab_state' => 0,
+                      'grab_time' => 0,
+                      'pay_sn' => 0]);
         $affect_rows = $mod_fcode->affected_rows();
 
         if($ret != false && $affect_rows > 0) {
@@ -190,7 +191,7 @@ class operator
     {
         $cond = [];
         $cond['goods_commonid'] = $this->mCommonID;
-        $cond['batch_code']      = $this->mBatchCode;
+        $cond['batch_code']     = $this->mBatchCode;
         $cond['user_key']       = $fcode['user_key'];
         $cond['fc_id']          = $fcode['fc_id'];
         $cond['fc_state']       = $fcode['fc_state'];