zxhxx 3 years ago
parent
commit
d7c43e017b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/models/store/Package.php

+ 1 - 0
app/models/store/Package.php

@@ -309,6 +309,7 @@ class Package extends BaseModel
         if(isset($where['time_id']) && $where['time_id']>-4) $model = $model->where('time_id',$where['time_id']);
         if(isset($where['time_id']) && $where['time_id']>-4) $model = $model->where('time_id',$where['time_id']);
         $count = $model->value('count(id)')?:0;
         $count = $model->value('count(id)')?:0;
         $data = $model->order('id desc')->page($where['page'],$where['limit'])->select()->toarray();
         $data = $model->order('id desc')->page($where['page'],$where['limit'])->select()->toarray();
+        @file_put_contents("pack.txt",$model->getLastSql());
         $whole = [];
         $whole = [];
         foreach (sys_data('whole_time') as $v)
         foreach (sys_data('whole_time') as $v)
         {
         {