Browse Source

增加中奖金额日志

master
wanghongjun 2 years ago
parent
commit
da499a7b70
  1. 23
      app/model/AwardsLog.php

23
app/model/AwardsLog.php

@ -0,0 +1,23 @@
<?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();
}
}
Loading…
Cancel
Save