刮刮后端接口
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
738 B

<?php
declare (strict_types = 1);
namespace app\model;
use think\Model;
/**
* @mixin \think\Model
*/
class AgentUpScoresRecords extends Model
{
/**
* 创建上分记录
* @param $aid
* @param $user_id
* @param $withdrawal_amount
* @param $withdrawal_balance
* @return mixed
*/
public static function createRecords($aid,$user_id,$balance,$residue_amount)
{
$Records = new AgentUpScoresRecords();
$Records->aid = $aid;
$Records->user_id = $user_id;
$Records->balance = $balance;
$Records->residue_amount = $residue_amount;
$Records->create_time = date("Y-m-d H:i:s",time());
$Records->save();
return $Records->id;
}
}