zxhxx 4 년 전
부모
커밋
d7c43e017b
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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)
         {
         {