xjc преди 5 години
родител
ревизия
c233f74288
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/manage/controls.py
  2. 1 1
      src/weixin/controls.py

+ 1 - 1
src/manage/controls.py

@@ -1128,7 +1128,7 @@ def update_signup_state(request):
             addText(img,class_hour_tpl,unicode("培训类型:{}".format(train_type),"utf-8"),class_hour_file,(80,220),20)
             addText(img,class_hour_tpl,unicode("总学时:{}".format(total_classhour),"utf-8"),class_hour_file,(80,250),20)
             addText(img,class_hour_tpl,unicode("已完成学时:{}".format(total_classhour),"utf-8"),class_hour_file,(80,280),20)
-            url = "https://www.scxjc.club/upload" + class_hour_file.replace(root_target,"")
+            url = "https://wxapi.yifeng2016.com/upload" + class_hour_file.replace(root_target,"")
             so.classhour_cert_url = url
             so.update_time = datetime.datetime.now()
             so.save()

+ 1 - 1
src/weixin/controls.py

@@ -493,7 +493,7 @@ def gen_classhour(request):
     addText(img,class_hour_tpl,unicode("准操项目:{}".format(subject_item2),"utf-8"),class_hour_file,(80,190),20)
     addText(img,class_hour_tpl,unicode("培训类型:{}".format(train_type),"utf-8"),class_hour_file,(80,220),20)
     addText(img,class_hour_tpl,unicode("总学时:{}".format(total_classhour),"utf-8"),class_hour_file,(80,250),20)
-    addText(img,class_hour_tpl,unicode("已完成学时:{}".format(170),"utf-8"),class_hour_file,(80,280),20)
+    addText(img,class_hour_tpl,unicode("已完成学时:{}".format(total_classhour),"utf-8"),class_hour_file,(80,280),20)
     #addText(class_hour_tpl,"请提供学时证明内容",class_hour_file)
     url = settings.HOST+"/upload" + class_hour_file.replace(root_target,"")
     cm.SignupOrders.objects.filter(id=signup_id).update(classhour_cert_url=url)