feat: 项目基础框架+配置+Kernel
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class LhDepositOrderLog extends Model
|
||||
{
|
||||
public $table = 'lh_deposit_order_log';
|
||||
const UPDATED_AT = null;
|
||||
public static function newLog($accountId,$orderId,$amount,$logDay){
|
||||
$model = new self();
|
||||
$model->bank_account_id = $accountId;
|
||||
$model->lh_order_id = $orderId;
|
||||
$model->interest_amount = $amount;
|
||||
$model->interest_day = $logDay;
|
||||
|
||||
$model->save();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user