see999 2 years ago
parent
commit
7e232740e3

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

1055
 	var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
1055
 	var code = "041pXnGa1eLxTB0iypFa1W6USs1pXnGK"
1056
 
1056
 
1057
 	openId, _ := service.SendWxAuthAPI(appid, secret, grant_type, code)
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
 	this.ServeSuccessJSON(map[string]interface{}{
1059
 	this.ServeSuccessJSON(map[string]interface{}{
1060
 		"openId":      openId,
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 View File

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