@@ -33,10 +33,10 @@ func QRCodeRecord(code string, action int) {
switch action {
case 1:
msg = "关注"
- updateSql = `UPDATE jianyu.wx_code_manage SET scan_num = scan_num +1 WHERE appid = ? AND code = ? `
+ updateSql = `UPDATE jianyu.wx_code_manage SET sub_num = sub_num +1 WHERE appid = ? AND code = ? `
case 2:
msg = "扫码"
- updateSql = `UPDATE jianyu.wx_code_manage SET sub_num = sub_num +1 WHERE appid = ? AND code = ? `
+ updateSql = `UPDATE jianyu.wx_code_manage SET scan_num = scan_num +1 WHERE appid = ? AND code = ? `
}
if updateSql != "" {
i := Mysql.UpdateOrDeleteBySql(updateSql, config.Appid, code)