智盟项目
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.

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