|
@@ -6,7 +6,7 @@ import oss2
|
|
|
from django.http import JsonResponse
|
|
|
from django.views.generic.base import View
|
|
|
|
|
|
-from AnsjerPush.config import CONFIG_INFO, CONFIG_CN, CONFIG_US, CONFIG_EUR
|
|
|
+from AnsjerPush.config import CONFIG_INFO, CONFIG_CN, CONFIG_US, CONFIG_EUR, CONFIG_TEST
|
|
|
from AnsjerPush.config import OSS_STS_ACCESS_KEY, OSS_STS_ACCESS_SECRET
|
|
|
from Object.RedisObject import RedisObject
|
|
|
from Service.DevicePushService import DevicePushService
|
|
@@ -146,6 +146,10 @@ class NotificationView(View):
|
|
|
else:
|
|
|
region = 2
|
|
|
storage_location = 1
|
|
|
+ # 测试
|
|
|
+ if CONFIG_INFO == CONFIG_TEST:
|
|
|
+ storage_location = 3
|
|
|
+
|
|
|
# 获取图片上传链接
|
|
|
kwargs = {
|
|
|
'is_st': is_st,
|