修改失败原因字段
This commit is contained in:
parent
74583ff318
commit
ef169b3bc6
@ -93,7 +93,7 @@ class LocalStoreGoodsLogic extends Logic
|
||||
public static function operation($data)
|
||||
{
|
||||
if ($data['state'] == LocalStoreGoodsEnum::AUDIT_STATUS_OK || $data['state'] == LocalStoreGoodsEnum::AUDIT_STATUS_REFUSE) {
|
||||
return LocalStoreGoods::where(['id' => $data['id']])->update(['audit_status' => $data['state'] , 'audit_remark' => $data['audit_remark'] ?? '', 'update_time' => time()]);
|
||||
return LocalStoreGoods::where(['id' => $data['id']])->update(['audit_status' => $data['state'] , 'audit_remark' => $data['reason'] ?? '', 'update_time' => time()]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user