|
@@ -721,7 +721,7 @@ class EnterpriseChangeRecord extends AdminController {
|
|
|
$data["modify_files"] = $files ? implode(",", $files) : null;
|
|
|
$data["updateTime"] = date("Y-m-d H:i:s");
|
|
|
$data["updateUser"] = session("user")["uid"];
|
|
|
- if (EnterpriseApi::updateById($data)) {
|
|
|
+ if (\app\enterprise\model\EnterpriseRecord::update($data)) {
|
|
|
return json(["code" => 200, "msg" => "修改成功!"]);
|
|
|
}
|
|
|
} catch (\think\Exception $e) {
|