附近小店
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.
 
 
 

16 rivejä
418 B

  1. package mob
  2. import "applet/app/svc"
  3. //NewMobSDK 构建一个Mobsdk对象
  4. func NewMobSDK() *SDK {
  5. // 后续可能要传请求的上下文来获取对应的配置
  6. // mob 目前都是我们来管理每个站长的app 所以使用template 库
  7. key := svc.SysCfgGet(nil, "third_mob_app_key")
  8. secret := svc.SysCfgGet(nil, "third_mob_app_secret")
  9. mob := new(SDK)
  10. mob.AppKey = key
  11. mob.AppSecret = secret
  12. return mob
  13. }