wangshan 3 жил өмнө
parent
commit
34c035131c

+ 2 - 0
src/jfw/modules/app/src/app/front/vipsubscribe.go

@@ -4,6 +4,7 @@ import (
 	. "app/jyutil"
 	"encoding/hex"
 	"jfw/public"
+	"log"
 	"qfw/util"
 	"qfw/util/jy"
 	"strings"
@@ -99,6 +100,7 @@ func (s *Subscribepay) ToSetPage() {
 	if strings.Contains(s.Refer(), "/jyapp/jylab/index") {
 		vSwitch = jy.SwitchService.Vip
 	}
+	log.Println(vSwitch, "-------------------")
 	if vSwitch != "" {
 		if vSwitch == jy.SwitchService.Vip {
 			s.SetSession(jy.SwitchService.SessionKey, jy.SwitchService.Vip)

+ 2 - 2
src/jfw/modules/publicapply/src/adLeague/service/service.go

@@ -48,12 +48,12 @@ func (this *Ad) AdL(typ string) {
 		}
 		defer res.Body.Close()
 		bs, _ := ioutil.ReadAll(res.Body)
-		//log.Println("返回内容:" + string(bs))
+		log.Println("返回内容:" + string(bs))
 		if len(bs) > 0 {
 			resMap := map[string]interface{}{}
 			err = json.Unmarshal([]byte(bs), &resMap)
 			if err != nil {
-				log.Println("json.unmarshal err", resMap)
+				log.Println("json.unmarshal err", err, resMap)
 			} else {
 				if qu.IntAll(resMap["Code"]) == 1 {
 					return Result{Data: true}