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

url.go 562 B

2 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. kuaizhan_host := offical.SysCfgByKeyStr(engine, "kuaizhan_host")
  10. if kuaizhan_host == "" {
  11. return ""
  12. }
  13. numData := offical.GetKuaizhanUrl(engine, args["mid"])
  14. if numData.EndTime.Unix() <= time.Now().Unix() {
  15. return ""
  16. }
  17. kuaizhan_host += "?code=" + php2go.URLEncode(php2go.Base64Encode(args["url"]))
  18. return kuaizhan_host
  19. }