正在显示
1 个修改的文件
包含
2 行增加
和
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){ |
-
请 注册 或 登录 后发表评论