正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -108,9 +108,9 @@ class Extension3915ModuleController extends BaseController | @@ -108,9 +108,9 @@ class Extension3915ModuleController extends BaseController | ||
| 108 | $this->fail('当前项目不能调用当前方法'); | 108 | $this->fail('当前项目不能调用当前方法'); |
| 109 | } | 109 | } |
| 110 | $moduleFieldModel = new ExtensionModuleField(); | 110 | $moduleFieldModel = new ExtensionModuleField(); |
| 111 | - $filedList = $moduleFieldModel->where(['module_id' => $this->param['module_id']])->pluck('field_name', 'id')->toArray(); | 111 | + $filedList = $moduleFieldModel->where(['module_id' => $this->param['module_id']])->pluck( 'id','field_name')->toArray(); |
| 112 | if(empty($filedList)){ | 112 | if(empty($filedList)){ |
| 113 | - $this->response('请先设置字段,再添加数据',Code::SUCCESS); | 113 | + $this->response('请先设置字段,再添加数据'); |
| 114 | } | 114 | } |
| 115 | $data = $this->param['data']; | 115 | $data = $this->param['data']; |
| 116 | $moduleValueModel = new ExtensionModuleValue(); | 116 | $moduleValueModel = new ExtensionModuleValue(); |
-
请 注册 或 登录 后发表评论