入账记录汇率

This commit is contained in:
2025-11-01 14:13:55 +08:00
parent 4dbd72acce
commit f1d5fae122
3 changed files with 15 additions and 11 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ class FinReceiptLogic
*/
protected string $modelClass = FinReceipt::class;
public function credit($id)
public function credit($id, $data)
{
return FinReceipt::where('id', $id)->update(['received_at' => time()]);
return FinReceipt::where('id', $id)->update($data);
}
}