作者 anyv
1 个管道 的构建 通过 耗费 0 秒

8

@@ -304,7 +304,7 @@ class OrderpageController extends WeChatBaseController{ @@ -304,7 +304,7 @@ class OrderpageController extends WeChatBaseController{
304 } 304 }
305 $where['region'] = ['like',"%$area%"]; 305 $where['region'] = ['like',"%$area%"];
306 $where['uid'] = ['eq',$my_user2['uid']]; 306 $where['uid'] = ['eq',$my_user2['uid']];
307 - $data = Db::name('school')->where($where)->select(); 307 + $data = Db::name('school')->where($where)->select()->toArray();
308 //循环组建新数据 308 //循环组建新数据
309 foreach ($data as $key=>$val){ 309 foreach ($data as $key=>$val){
310 $datas['value'] = $val['id']; 310 $datas['value'] = $val['id'];