see999 3 anni fa
parent
commit
7e232740e3

+ 2 - 2
controllers/xcx_mobile_api_controller.go/xcx_api_controller.go Vedi File

@@ -1055,9 +1055,9 @@ func (this *XcxApiController) GetAppId() {
1055 1055
 	var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
1056 1056
 
1057 1057
 	openId, _ := service.SendWxAuthAPI(appid, secret, grant_type, code)
1058
-	session_key, _ := service.SendWxAuthAPIOne(appid, secret, grant_type, code)
1058
+	// session_key, _ := service.SendWxAuthAPIOne(appid, secret, grant_type, code)
1059 1059
 	this.ServeSuccessJSON(map[string]interface{}{
1060 1060
 		"openId":      openId,
1061
-		"session_key": session_key,
1061
+		// "session_key": session_key,
1062 1062
 	})
1063 1063
 }

+ 1 - 0
service/xcx_mobile_api_service.go Vedi File

@@ -10,6 +10,7 @@ import (
10 10
 	"fmt"
11 11
 	"github.com/jinzhu/gorm"
12 12
 	"time"
13
+	"net/http"
13 14
 )
14 15
 
15 16
 func GetXcxMobileInformation(mobile string) (*models.XcxAdminUserRole, error) {