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

调试

@@ -31,10 +31,12 @@ class TestController extends HomeBaseController @@ -31,10 +31,12 @@ class TestController extends HomeBaseController
31 $data = Db::name('money_income')->where('money','>',0)->where('indent_id',$v['indent_id'])->find(); 31 $data = Db::name('money_income')->where('money','>',0)->where('indent_id',$v['indent_id'])->find();
32 if($data) { 32 if($data) {
33 $data['nickname'] = Db::name('user')->where('id',$data['uid'])->value('user_nickname'); 33 $data['nickname'] = Db::name('user')->where('id',$data['uid'])->value('user_nickname');
  34 + unset($data['id']);
34 $a[] = $data; 35 $a[] = $data;
35 } 36 }
36 } 37 }
37 } 38 }
  39 + Db::name('indent_over')->insertAll($a);
38 print_r($a);exit; 40 print_r($a);exit;
39 // $data = Db::name('my_user')->where(['status'=>3,'inviter_phone'=>['neq','']])->select()->toArray(); 41 // $data = Db::name('my_user')->where(['status'=>3,'inviter_phone'=>['neq','']])->select()->toArray();
40 // foreach($data as $key => $vo){ 42 // foreach($data as $key => $vo){