|
@@ -740,8 +740,8 @@ class CloudStorageView(View):
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
-
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
+ device_name = UID
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的'+device_name+'设备在'+datetime+'已成功购买云存套餐', 'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on '+ time.strftime("%b %dth,%Y", time.localtime())]
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的'+device_name+'设备在'+datetime+'已成功购买云存套餐', 'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on '+ time.strftime("%b %dth,%Y", time.localtime())]
|
|
self.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list, 'SMS_219738485')
|
|
self.do_vod_msg_Notice(UID, channel, userid, lang, sys_msg_text_list, 'SMS_219738485')
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
red_url = "{SERVER_DOMAIN_SSL}web/paid2/success.html".format(SERVER_DOMAIN_SSL=SERVER_DOMAIN_SSL)
|
|
@@ -890,8 +890,8 @@ class CloudStorageView(View):
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
-
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
+ device_name = UID
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
"%b %dth,%Y", time.localtime())]
|
|
"%b %dth,%Y", time.localtime())]
|
|
@@ -1020,8 +1020,8 @@ class CloudStorageView(View):
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
order_qs.update(status=1, updTime=nowTime, uid_bucket_id=uid_bucket_id, promotion_rule_id=promotion_rule_id)
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
-
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=UID)
|
|
|
|
+ device_name = UID
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
"%b %dth,%Y", time.localtime())]
|
|
"%b %dth,%Y", time.localtime())]
|
|
@@ -1369,7 +1369,8 @@ class CloudStorageView(View):
|
|
sms = 'SMS_219738485'
|
|
sms = 'SMS_219738485'
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
datetime = time.strftime("%Y-%m-%d", time.localtime())
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=uid)
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=uid)
|
|
|
|
+ device_name = uid
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
sys_msg_text_list = ['温馨提示:尊敬的客户,您的' + device_name + '设备在' + datetime + '已成功购买云存套餐',
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
'Dear customer,you already subscribed the cloud storage package successfully for device ' + device_name + ' on ' + time.strftime(
|
|
"%b %dth,%Y", time.localtime())]
|
|
"%b %dth,%Y", time.localtime())]
|
|
@@ -1466,9 +1467,9 @@ class CloudStorageView(View):
|
|
|
|
|
|
# 如果存在序列号返回完整序列号
|
|
# 如果存在序列号返回完整序列号
|
|
device_id = uid
|
|
device_id = uid
|
|
- serial_number = dv_qs[0]['serial_number']
|
|
|
|
- if serial_number:
|
|
|
|
- device_id = CommonService.get_full_serial_number(uid, serial_number, dv_qs[0]['Type'])
|
|
|
|
|
|
+ # serial_number = dv_qs[0]['serial_number']
|
|
|
|
+ # if serial_number:
|
|
|
|
+ # device_id = CommonService.get_full_serial_number(uid, serial_number, dv_qs[0]['Type'])
|
|
|
|
|
|
uid_bucket[0]['uid'] = device_id
|
|
uid_bucket[0]['uid'] = device_id
|
|
uid_bucket[0]['storage'] = 0
|
|
uid_bucket[0]['storage'] = 0
|
|
@@ -1613,7 +1614,8 @@ class CloudStorageView(View):
|
|
S3Email().faEmail(sys_msg_text, username)
|
|
S3Email().faEmail(sys_msg_text, username)
|
|
elif data_valid.mobile_validate(username):
|
|
elif data_valid.mobile_validate(username):
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=uid)
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=uid)
|
|
|
|
+ device_name = uid
|
|
params = u'{"devname":"' + device_name + '","submittime":"' + time.strftime("%Y-%m-%d",time.localtime()) + '"}'
|
|
params = u'{"devname":"' + device_name + '","submittime":"' + time.strftime("%Y-%m-%d",time.localtime()) + '"}'
|
|
self.sendMessage(username, params, sms)
|
|
self.sendMessage(username, params, sms)
|
|
|
|
|
|
@@ -1652,7 +1654,8 @@ class CloudStorageView(View):
|
|
for oo in oqlist:
|
|
for oo in oqlist:
|
|
if ub['id'] == oo['uid_bucket_id']:
|
|
if ub['id'] == oo['uid_bucket_id']:
|
|
# 如果存在序列号,消息提示用序列号
|
|
# 如果存在序列号,消息提示用序列号
|
|
- device_name = CommonService.query_serial_with_uid(uid=ub['uid'])
|
|
|
|
|
|
+ # device_name = CommonService.query_serial_with_uid(uid=ub['uid'])
|
|
|
|
+ device_name = ub['uid']
|
|
if ub['bucket__area'] == 'cn':
|
|
if ub['bucket__area'] == 'cn':
|
|
sys_msg_text = "温馨提示:尊敬的客户,您" + device_name + "设备的云存套餐将在" + time.strftime("%Y-%m-%d", time.localtime(ub['endTime'])) + "到期"
|
|
sys_msg_text = "温馨提示:尊敬的客户,您" + device_name + "设备的云存套餐将在" + time.strftime("%Y-%m-%d", time.localtime(ub['endTime'])) + "到期"
|
|
else:
|
|
else:
|