WIN-2308041133\Administrator 1 year ago
parent
commit
c4266c4dd9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/admin/model/WechatPlanRecord.php

+ 2 - 2
application/admin/model/WechatPlanRecord.php

@@ -59,10 +59,10 @@ class WechatPlanRecord extends Model
         if (isset($where['id']) && $where['id'] > 0) $xwhere['id'] = $where['id'];
 //        if (isset($where['cid']) && $where['cid'] > 0) $xwhere['cid'] = $where['cid'];
 //        if (isset($where['category_id']) && $where['category_id'] > 0) $xwhere['category_id'] = $where['category_id'];
-        $data = $model->where($xwhere)->where('is_signing',0)->order($order)->select()->toArray();
+        $data = $model->where($xwhere)->where('is_signing',0)->order($order)->select();
         $count = $model->where($xwhere)->count();
         @file_put_contents("quanju.txt", json_encode($data)."-列表详情\r\n", 8);
-        var_dump($data['order_name']);die();
+        var_dump($data[0]['order_name']);die();
 //        $lave = new Lave();
 //        $list = $lave->where('uid', $where['uid'])->where('order_name', $data[0][''])->select();
         return compact('count', 'data');