zxhxx 3 years ago
parent
commit
d70f614c25
1 changed files with 2 additions and 1 deletions
  1. 2 1
      application/api/controller/Level.php

+ 2 - 1
application/api/controller/Level.php

@@ -30,9 +30,10 @@ class Level extends Api
         );
         $where1 = $where;
         unset($where1['from']);
+        @file_put_contents("level.txt",'11');
         $where1['order_id'] = OrderLevel::getNewOrderId();
         $where1['createtime'] = time();
-        @file_put_contents("level.txt",json_encode($where1));
+        @file_put_contents("level.txt",json_encode($where1),8);
         $order = OrderLevel::order_create($where1);
         if(!$order) $this->error(OrderLevel::getErrorInfo());
         $orderId = $order['order_id'];