Explorar el Código

支付成功后 清除首页缓存

wangshan hace 5 años
padre
commit
ec1caad1c9
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/jfw/modules/subscribepay/src/entity/subscribeVip.go

+ 4 - 0
src/jfw/modules/subscribepay/src/entity/subscribeVip.go

@@ -153,6 +153,10 @@ func (this *vipSubscribeStruct) PayCallBack(param *CallBackParam) bool {
 	//}
 	//支付成功后
 	if flag {
+		//支付成功后 清除首页redis缓存
+		go func() {
+			redis.Del("other", "p1_indexMessage_"+userid)
+		}()
 		//支付提醒
 		liveStart := Config.LiveActiveStartTime
 		liveEnd := Config.LiveActiveEndTime