You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
784 B
34 lines
784 B
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class AgentDownScoresRecords extends Model
|
|
{
|
|
/**
|
|
* 创建下分记录
|
|
* @param $aid
|
|
* @param $user_id
|
|
* @param $withdrawal_amount
|
|
* @param $withdrawal_balance
|
|
* @return mixed
|
|
*/
|
|
public static function createRecords($aid,$user_id,$withdrawal_amount,$withdrawal_balance)
|
|
{
|
|
$Records = new AgentDownScoresRecords();
|
|
|
|
$Records->aid = $aid;
|
|
$Records->user_id = $user_id;
|
|
$Records->withdrawal_amount = $withdrawal_amount;
|
|
$Records->withdrawal_balance = $withdrawal_balance;
|
|
$Records->create_time = date("Y-m-d H:i:s",time());
|
|
$Records->save();
|
|
|
|
return $Records->id;
|
|
}
|
|
}
|
|
|