第三方api接口
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.

4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
123456789101112131415161718192021
  1. package kuaizhan
  2. import (
  3. "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/db/offical"
  4. "github.com/syyongx/php2go"
  5. "time"
  6. "xorm.io/xorm"
  7. )
  8. func KuaizhanUrl(engine *xorm.Engine, args map[string]string) string {
  9. kuaizhanHost := offical.SysCfgByKeyStr(engine, "kuaizhan_host")
  10. if kuaizhanHost == "" {
  11. return ""
  12. }
  13. numData := offical.GetKuaizhanUrl(engine, args["mid"])
  14. if numData.EndTime.Unix() <= time.Now().Unix() {
  15. return ""
  16. }
  17. kuaizhanHost += "?code=" + php2go.URLEncode(php2go.Base64Encode(args["url"]))
  18. return kuaizhanHost
  19. }