正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -247,6 +247,7 @@ class lyhDemo extends Command | @@ -247,6 +247,7 @@ class lyhDemo extends Command | ||
| 247 | $this->model = new Translate(); | 247 | $this->model = new Translate(); |
| 248 | $lists = DB::connection('custom_mysql')->table('gl_translate_copy1')->where('url','!=','All')->get()->toArray(); | 248 | $lists = DB::connection('custom_mysql')->table('gl_translate_copy1')->where('url','!=','All')->get()->toArray(); |
| 249 | foreach ($lists as $item) { | 249 | foreach ($lists as $item) { |
| 250 | + $item = (array)$item; | ||
| 250 | $sourceInfo = $this->getRouteSource($item['url']); | 251 | $sourceInfo = $this->getRouteSource($item['url']); |
| 251 | $info = $this->model->read(['language_id'=>$item['language_id'],'source_id'=>$sourceInfo['source_id'],'url'=>$item['url'],'project_id'=>655,'type'=>$item['type']]); | 252 | $info = $this->model->read(['language_id'=>$item['language_id'],'source_id'=>$sourceInfo['source_id'],'url'=>$item['url'],'project_id'=>655,'type'=>$item['type']]); |
| 252 | if($info === false){ | 253 | if($info === false){ |
-
请 注册 或 登录 后发表评论