|
@@ -281,7 +281,7 @@ class WeChat(object):
|
|
"is_hyaline": True,
|
|
"is_hyaline": True,
|
|
}
|
|
}
|
|
result = requests.post(url, json=data)
|
|
result = requests.post(url, json=data)
|
|
- upload_path = PathAndRename("activiytCode/")
|
|
|
|
|
|
+ upload_path = PathAndRename("wxacode/")
|
|
filename = "{}{}_{}.png".format(upload_path.path, activity_id, customer_id)
|
|
filename = "{}{}_{}.png".format(upload_path.path, activity_id, customer_id)
|
|
filename = filename.lower()
|
|
filename = filename.lower()
|
|
full_filename = "%s%s" % (settings.MEDIA_ROOT, filename)
|
|
full_filename = "%s%s" % (settings.MEDIA_ROOT, filename)
|
|
@@ -300,7 +300,7 @@ class WeChat(object):
|
|
"is_hyaline": True,
|
|
"is_hyaline": True,
|
|
}
|
|
}
|
|
result = requests.post(url, json=data)
|
|
result = requests.post(url, json=data)
|
|
- upload_path = PathAndRename("activiytCode/")
|
|
|
|
|
|
+ upload_path = PathAndRename("wxacode/")
|
|
filename = "{}_{}.png".format(upload_path.path, activity_id)
|
|
filename = "{}_{}.png".format(upload_path.path, activity_id)
|
|
filename = filename.lower()
|
|
filename = filename.lower()
|
|
full_filename = "%s%s" % (settings.MEDIA_ROOT, filename)
|
|
full_filename = "%s%s" % (settings.MEDIA_ROOT, filename)
|