1
This commit is contained in:
@@ -3,6 +3,7 @@ package weixinapi
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"math/rand"
|
||||
"mime/multipart"
|
||||
"net/http"
|
||||
@@ -89,6 +90,7 @@ func (a *API) AccessAPI(action string, params map[string]interface{}, body strin
|
||||
if accessToken == "" {
|
||||
panic("token is empty!")
|
||||
}
|
||||
globals.SugarLogger.Debugf("-------token := %s, action := %s", accessToken, action)
|
||||
params2["access_token"] = accessToken
|
||||
}
|
||||
fullURL := utils.GenerateGetURL(prodURL, action, params2)
|
||||
|
||||
@@ -2,8 +2,6 @@ package weixinapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
)
|
||||
|
||||
//获取小程序码
|
||||
@@ -17,6 +15,5 @@ func (a *API) GetUnlimited(scene, page string) (results map[string]interface{},
|
||||
return results, err
|
||||
}
|
||||
results, err = a.AccessAPI("wxa/getwxacodeunlimit", nil, string(bytes))
|
||||
globals.SugarLogger.Debugf("--------GetUnlimited--:%s", utils.Format4Output(results, false))
|
||||
return results, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user