This commit is contained in:
weiz 2024-04-11 09:21:47 +08:00
parent 66eaf507fe
commit cef31fd76c
2 changed files with 3 additions and 3 deletions

View File

@ -54,7 +54,7 @@
public function add()
{
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('add');
$result = MaterialPurchaseRequestLogic::add($params, $this->adminId);
$result = MaterialPurchaseRequestLogic::add($params);
if (true === $result) {
return $this->success('添加成功', [], 1, 1);
}
@ -64,7 +64,7 @@
public function edit()
{
$params = (new MaterialPurchaseRequestValidate())->post()->goCheck('edit');
$result = MaterialPurchaseRequestLogic::edit($params, $this->adminId);
$result = MaterialPurchaseRequestLogic::edit($params);
if (true === $result) {
return $this->success('编辑成功', [], 1, 1);
}

View File

@ -42,7 +42,7 @@
* @author likeadmin
* @date 2024/01/09 13:47
*/
public static function add(array $params, $admin_id): bool
public static function add(array $params): bool
{
Db::startTrans();
try {