This commit is contained in:
MeSHard
2025-11-10 16:12:07 +08:00
parent 99f88bc53e
commit 94f7e83679
181 changed files with 15770 additions and 0 deletions

27
app/model/User.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
declare (strict_types=1);
namespace app\model;
use think\facade\Db;
use think\Model;
/**
* @mixin \think\Model
*/
class User extends Model
{
//用户金额记录日志
public static function addMoneyLog($openid, $money, $type, $mark)
{
Db::table('zxc_user_money_log')->insert([
'openid' => $openid,
'money' => $money,
'type' => $type,
'mark' => $mark,
'createtime' => date('Y-m-d H:i:s', time()),
]);
}
}