广告平台(媒体使用)
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.

преди 3 месеца
12345678910111213141516171819202122
  1. package qiniu
  2. import (
  3. "applet/app/utils"
  4. )
  5. var (
  6. AK = "MmxNdai23egjNUHjdzEVaTPdPCIbWzENz9BQuak3"
  7. SK = "mElaFlM9O16rXp-ihoQdJ9KOH56naKm3MoyQBA59"
  8. BUCKET = "dev-fnuoos" // 桶子名称
  9. BUCKET_SCHEME = "http"
  10. BUCKET_REGION = "up-z2.qiniup.com"
  11. Expires uint64 = 3600
  12. )
  13. func Init(ak, sk, bucket, region, scheme string) {
  14. AK, SK, BUCKET, BUCKET_REGION, BUCKET_SCHEME = ak, sk, bucket, region, scheme
  15. }
  16. func Sign(t string) string {
  17. return utils.Md5(AK + SK + t)
  18. }