You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
486 B
19 lines
486 B
package wechat |
|
|
|
import ( |
|
"context" |
|
|
|
"go-common/app/interface/main/web-goblin/model/wechat" |
|
"go-common/library/log" |
|
) |
|
|
|
// Qrcode get qrcode from wechat. |
|
func (s *Service) Qrcode(c context.Context, arg string) (qrcode []byte, err error) { |
|
var accessToken *wechat.AccessToken |
|
if accessToken, err = s.dao.AccessToken(c); err != nil { |
|
log.Error("Qrcode s.dao.AccessToken error(%v) arg(%s)", err, arg) |
|
return |
|
} |
|
qrcode, err = s.dao.Qrcode(c, accessToken.AccessToken, arg) |
|
return |
|
}
|
|
|