update:商户合同添加备忘

This commit is contained in:
chenbo 2023-09-15 13:53:01 +08:00
parent aa3e30522b
commit 43ae02fea1

View File

@ -186,4 +186,16 @@ class ShopContractController extends BaseAdminController
);
return app(JunziqianController::class)->EvidenceShopDownload($request);
}
public function addNote()
{
$params = $this->request->param(); // id notes
$shopContract = ShopContract::where('id', $params['id'])->find();
if (empty($shopContract)) {
return $this->fail('合同不存在');
}
$shopContract->notes = $params['notes'];
$shopContract->save();
return $this->success('成功');
}
}