1 changed files with 23 additions and 0 deletions
@ -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…
Reference in new issue