数据采集
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
536 B

  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. }