正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -43,8 +43,8 @@ class SyncMobile extends Command | @@ -43,8 +43,8 @@ class SyncMobile extends Command | ||
| 43 | $param = []; | 43 | $param = []; |
| 44 | $create_time = date('Y-m-d H:i:s'); | 44 | $create_time = date('Y-m-d H:i:s'); |
| 45 | foreach ($data as $v){ | 45 | foreach ($data as $v){ |
| 46 | - $param['mobile'] = $v; | ||
| 47 | - $param['created_at'] = $create_time; | 46 | + $param[]['mobile'] = $v; |
| 47 | + $param[]['created_at'] = $create_time; | ||
| 48 | } | 48 | } |
| 49 | if(!empty($param)){ | 49 | if(!empty($param)){ |
| 50 | DB::table('gl_mobile')->insert($param); | 50 | DB::table('gl_mobile')->insert($param); |
-
请 注册 或 登录 后发表评论