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.
23 lines
487 B
23 lines
487 B
<?php
|
|
declare (strict_types = 1);
|
|
|
|
namespace app\model;
|
|
|
|
use think\Model;
|
|
|
|
/**
|
|
* @mixin \think\Model
|
|
*/
|
|
class AwardsLog extends Model
|
|
{
|
|
//
|
|
public static function createLog($z_g_id,$user_id,$awards_amount)
|
|
{
|
|
$AwardsLog = new AwardsLog();
|
|
$AwardsLog->z_g_id = $z_g_id;
|
|
$AwardsLog->user_id = $user_id;
|
|
$AwardsLog->awards_amount = $awards_amount;
|
|
$AwardsLog->create_time = date("Y-m-d H:i:s",time());
|
|
$AwardsLog->save();
|
|
}
|
|
}
|
|
|