|
...
|
...
|
@@ -108,9 +108,9 @@ class Extension3915ModuleController extends BaseController |
|
|
|
$this->fail('当前项目不能调用当前方法');
|
|
|
|
}
|
|
|
|
$moduleFieldModel = new ExtensionModuleField();
|
|
|
|
$filedList = $moduleFieldModel->where(['module_id' => $this->param['module_id']])->pluck('field_name', 'id')->toArray();
|
|
|
|
$filedList = $moduleFieldModel->where(['module_id' => $this->param['module_id']])->pluck( 'id','field_name')->toArray();
|
|
|
|
if(empty($filedList)){
|
|
|
|
$this->response('请先设置字段,再添加数据',Code::SUCCESS);
|
|
|
|
$this->response('请先设置字段,再添加数据');
|
|
|
|
}
|
|
|
|
$data = $this->param['data'];
|
|
|
|
$moduleValueModel = new ExtensionModuleValue();
|
...
|
...
|
|