广告平台(站长下代理使用)
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 달 전
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. }