adjust
This commit is contained in:
parent
8850e4bf25
commit
8058c3e5ce
@ -95,15 +95,14 @@ func (wp *wxpay) checkGameMediaId() {
|
||||
|
||||
func (wp *wxpay) GenThumburl(gameid int64) (thumburl string) {
|
||||
token := wp.getAccessToken(gameid)
|
||||
mediaid := ""
|
||||
pmediaid, ok := wp.mediaInfo.Load(gameid)
|
||||
if ok {
|
||||
mediaid = *pmediaid
|
||||
}
|
||||
urls := mt.Table.Config.GetWxUrl()
|
||||
if len(urls) > 0 {
|
||||
thumburl = fmt.Sprintf("https://%s/cgi-bin/media/get?access_token=%s&type=image&media_id=%s", urls[0], token, *pmediaid)
|
||||
}
|
||||
|
||||
urls := mt.Table.Config.GetWxUrl()
|
||||
if len(urls) > 0 {
|
||||
thumburl = fmt.Sprintf("https://%s/cgi-bin/media/get?access_token=%s&type=image&media_id=%s", urls[0], token, mediaid)
|
||||
f5.GetSysLog().Debug("thumburl:%s", thumburl)
|
||||
}
|
||||
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user