Sfoglia il codice sorgente

feat:二维码更新次数调整

fuwencai 8 mesi fa
parent
commit
68632e85b1
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/jfw/modules/weixin/src/tools/qrcode.go

+ 2 - 2
src/jfw/modules/weixin/src/tools/qrcode.go

@@ -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)