Merge branch 'develop' into feature/mzl_dev
# Conflicts: # config/route.php
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\logic;
|
||||
|
||||
use app\common\traits\crud\CrudLogicTrait;
|
||||
use app\common\model\FinReceipt;
|
||||
|
||||
class FinReceiptLogic
|
||||
{
|
||||
use CrudLogicTrait;
|
||||
|
||||
/**
|
||||
* 指定当前要操作的模型
|
||||
*/
|
||||
protected string $modelClass = FinReceipt::class;
|
||||
|
||||
public function credit($id)
|
||||
{
|
||||
return FinReceipt::where('id', $id)->update(['received_at' => time()]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user