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) {
|
func (wp *wxpay) GenThumburl(gameid int64) (thumburl string) {
|
||||||
token := wp.getAccessToken(gameid)
|
token := wp.getAccessToken(gameid)
|
||||||
mediaid := ""
|
|
||||||
pmediaid, ok := wp.mediaInfo.Load(gameid)
|
pmediaid, ok := wp.mediaInfo.Load(gameid)
|
||||||
if ok {
|
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()
|
f5.GetSysLog().Debug("thumburl:%s", thumburl)
|
||||||
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)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user