|
|
@ -626,7 +626,7 @@ class ContentService { |
|
|
* @throws \app\exception\ModelException |
|
|
* @throws \app\exception\ModelException |
|
|
* @throws \ReflectionException |
|
|
* @throws \ReflectionException |
|
|
*/ |
|
|
*/ |
|
|
public function saveContent($param): array |
|
|
|
|
|
|
|
|
public function saveContent($param, $fromExport=0): array |
|
|
{ |
|
|
{ |
|
|
$moduleModel = new Module(); |
|
|
$moduleModel = new Module(); |
|
|
$module = $moduleModel->getModule(['id'=>$param['module_id'],'seller_id'=> $param['admin']['seller_id']],['moduleField','category'])['data']->toArray(); |
|
|
$module = $moduleModel->getModule(['id'=>$param['module_id'],'seller_id'=> $param['admin']['seller_id']],['moduleField','category'])['data']->toArray(); |
|
|
@ -781,8 +781,11 @@ class ContentService { |
|
|
Db::rollback(); |
|
|
Db::rollback(); |
|
|
return dataReturn(50012,$e->getMessage(), $e->getTrace()); |
|
|
return dataReturn(50012,$e->getMessage(), $e->getTrace()); |
|
|
} |
|
|
} |
|
|
|
|
|
if($fromExport == 1){ |
|
|
|
|
|
return $subRes->toArray(); |
|
|
|
|
|
} |
|
|
return dataReturn(0,lang('保存成功'),$subRes); |
|
|
return dataReturn(0,lang('保存成功'),$subRes); |
|
|
// return $subRes->toArray();
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|