WIN-2308041133\Administrator 1 년 전
부모
커밋
29ba1aafbf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/admin/model/WechatPlan.php

+ 1 - 1
application/admin/model/WechatPlan.php

@@ -19,7 +19,7 @@ class WechatPlan extends Model
             list($msec, $sec) = explode(' ', microtime());
             $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', '');
             $orderId = 'qy' . $msectime . mt_rand(10000, 99999);
-        } while (self::where(['order_id' => $orderId])->find());
+        } while (self::where(['contract_code' => $orderId])->find());
         return $orderId;
     }
     public static function lst($where)