正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -119,13 +119,15 @@ class LoginController extends BaseController | @@ -119,13 +119,15 @@ class LoginController extends BaseController | ||
| 119 | $this->response('success',Code::SUCCESS,strtolower($str)); | 119 | $this->response('success',Code::SUCCESS,strtolower($str)); |
| 120 | } | 120 | } |
| 121 | 121 | ||
| 122 | - | 122 | + |
| 123 | public function ceshi(){ | 123 | public function ceshi(){ |
| 124 | $templateModel = new TemplateModule(); | 124 | $templateModel = new TemplateModule(); |
| 125 | $list = $templateModel->list(); | 125 | $list = $templateModel->list(); |
| 126 | foreach ($list as $k => $v){ | 126 | foreach ($list as $k => $v){ |
| 127 | unset($v['id']); | 127 | unset($v['id']); |
| 128 | $data = $v; | 128 | $data = $v; |
| 129 | + var_dump($data); | ||
| 130 | + die(); | ||
| 129 | DB::table('gl_public_template_module_copy')->insert($data); | 131 | DB::table('gl_public_template_module_copy')->insert($data); |
| 130 | } | 132 | } |
| 131 | return 1; | 133 | return 1; |
-
请 注册 或 登录 后发表评论