zxhxx 3 년 전
부모
커밋
38e8ebe648
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/common/model/OrderLevel.php

+ 1 - 1
application/common/model/OrderLevel.php

@@ -60,7 +60,7 @@ class OrderLevel extends BaseModel
             list($msec, $sec) = explode(' ', microtime());
             $msectime = number_format((floatval($msec) + floatval($sec)) * 1000, 0, '', '');
             $orderId = 'wx' . $msectime . mt_rand(10000, 99999);
-            @file_put_contents("NewOrder.txt",$orderId."\r\n");
+            @file_put_contents("NewOrder.txt",$orderId."\r\n",8);
         } while (self::where(['order_id' => $orderId])->find());
         return $orderId;
     }