|
变量说明: {$NAME} : 玩家账号或角色名 ; {$MOUNT} : 游戏币数量
- insert into 数据库名.usecashnow(userid, zoneid, sn, aid, point, cash,status, creatime) values ((select id from 数据库名.users where name='{$NAME}'), '1', '0', '1',{$MOUNT}, {$MOUNT}, '1',now()) ON DUPLICATE KEY UPDATE point=point+{$MOUNT},cash=cash+{$MOUNT};
复制代码
|
|