Răsfoiți Sursa

Merge branch 'dev3.6' of http://192.168.3.207:10080/qmx/jy into dev3.6

zhangxinlei1996 4 ani în urmă
părinte
comite
422b9d2eb9

+ 2 - 2
src/jfw/modules/app/src/web/staticres/jyapp/me/js/mine.js

@@ -410,7 +410,7 @@ var vNode = {
           score: _this.addHowPoints()
         },
         success: function(res){
-          if (res.error_code === 0 && res.data.points) {
+          if (res.error_code === 0) {
             _this.signInfo.days++
             _this.signInfo.state = true
             _this.showAnimate = true
@@ -495,7 +495,7 @@ var vNode = {
       return points
     },
     recordFn: function() {
-      window.location.href = '/page_points/list'
+      window.location.href = '/page_points_app/list'
     }
   }
 }

+ 4 - 1
src/jfw/modules/subscribepay/src/service/commonAction.go

@@ -162,11 +162,14 @@ func (p *CommonAction) IsPaySuccess() {
 func (d *CommonAction) GetwxSdkSign() {
 	var sign []string
 	url := d.GetString("url")
+	openId, _ := d.GetSession("s_m_openid").(string)
 	if url != "" {
 		sign = SignJSSDK(url)
 	}
 	d.ServeJson(map[string]interface{}{
-		"wxsdk": sign,
+		"wxsdk":     sign,
+		"openid":    se.EncodeString(openId),
+		"webdomain": config.Config.WebDomain,
 	})
 }
 

+ 2 - 2
src/web/staticres/me/js/mine.js

@@ -262,7 +262,7 @@ var vNode = {
           score: _this.addHowPoints()
         },
         success: function(res){
-          if (res.error_code === 0 && res.data.points) {
+          if (res.error_code === 0) {
             _this.signInfo.days++
             _this.signInfo.state = true
             _this.showAnimate = true
@@ -347,7 +347,7 @@ var vNode = {
       return points
     },
     recordFn: function() {
-      window.location.href = '/page_points/list'
+      window.location.href = '/page_points_app/list'
     }
   }
 }

BIN
src/web/staticres/order/image/jianyubi - 副本.png