|
@@ -59,7 +59,7 @@ class WechatApplet(models.Model):
|
|
|
|
|
|
def generateActivityCode(self, customer_id, activity_id):
|
|
|
'''生成海报二维码'''
|
|
|
- filename = "{}{}_{}.png".format("activiytCode/", activity_id, customer_id)
|
|
|
+ filename = "{}{}_{}.png".format("wxacode/", activity_id, customer_id)
|
|
|
full_filename = "{}/{}".format(settings.MEDIA_ROOT, filename)
|
|
|
if os.path.exists(full_filename):
|
|
|
return filename
|
|
@@ -68,7 +68,7 @@ class WechatApplet(models.Model):
|
|
|
return filename
|
|
|
|
|
|
def generateActivityWXappCode(self, activity_id):
|
|
|
- filename = "{}_{}.png".format("activiytCode/", activity_id)
|
|
|
+ filename = "{}_{}.png".format("wxacode/", activity_id)
|
|
|
full_filename = "{}/{}".format(settings.MEDIA_ROOT, filename)
|
|
|
if os.path.exists(full_filename):
|
|
|
return filename
|