本帖最后由 柠檬 于 2022-1-23 10:40 编辑 #使用方法:
配合玩法为为充值玩家提供周卡,月卡等服务
也可以作为充值满一定玩家提供福利 ,每日赠送抽奖一类的
打开宝塔-左侧-计划任务
任务名称自定义,建议为玩家QQ或者帐号
选择执行周期即每天要充值的时间
修改上面的数据库密码 充值金额 和要充值的帐号
复制上面的内容 填入脚本内容里
添加任务即可
单帐号版本无元宝20亿限额判断 - #!/bin/bash
- DBNAME="dl_adb_all"
- USERNAME="root"
- PASSWORD="BHD2WjrBnT8sKAKj" #数据库密码
- COIN_NUM="100" #要充值的金额
- user_account="test0816" #需要充值的帐号
- mysql -u${USERNAME} -p${PASSWORD} -e "use ${DBNAME};
- UPDATE account SET silver_coin = silver_coin + $COIN_NUM, CHECKSUM = upper(CAST(md5(concat(CAST(account AS char CHARACTER SET utf8),CAST(PASSWORD AS char CHARACTER SET utf8),CAST(LPAD(CONV(privilege, 10, 16), 8, 0) AS char CHARACTER SET utf8),CAST(blocked_time AS char CHARACTER SET utf8),CAST(LPAD(CONV(gold_coin, 10, 16), 8, 0) AS char CHARACTER SET utf8),CAST(LPAD(CONV(silver_coin, 10, 16), 8, 0) AS char CHARACTER SET utf8),CAST(coin_password AS char CHARACTER SET utf8),CAST(unlock_coin_password_time AS char CHARACTER SET utf8),CAST(trade_lock_time AS char CHARACTER SET utf8),CAST(permit_ip AS char CHARACTER SET utf8),'ABCDEF')) AS CHAR))WHERE account = '$user_account';"
复制代码
|
|