fix: 优化update写法

This commit is contained in:
JXDN
2024-09-21 00:07:02 +08:00
parent 25f3dc97d9
commit 31d2d6a472
14 changed files with 23 additions and 46 deletions

View File

@@ -172,14 +172,12 @@ class QueryRefund extends Command
{
// 更新日志
RefundLog::update([
'id' => $logId,
'refund_status' => RefundEnum::REFUND_SUCCESS,
]);
], ['id' => $logId]);
// 更新记录
RefundRecord::update([
'id' => $recordId,
'refund_status' => RefundEnum::REFUND_SUCCESS,
]);
], ['id' => $recordId]);
}
@@ -194,9 +192,8 @@ class QueryRefund extends Command
{
// 更新日志
RefundLog::update([
'id' => $logId,
'refund_msg' => $msg,
]);
], ['id' => $logId]);
}
}