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

4 月之前
1234567891011121314151617181920
  1. package qiniu
  2. import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/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 zhios_third_party_utils.Md5(AK + SK + t)
  16. }