@@ -82,6 +82,6 @@ def start_contribution_contract_sign_api(request, administrator): |
||
82 | 82 |
wxcfg = WECHAT.get('MINIAPP', {}) |
83 | 83 |
appid = wxcfg.get('appID') |
84 | 84 |
|
85 |
- res = sendwxasubscribemessage(openid=user.openid_miniapp, template_id=settings.TEMPLATE_ID_CONTRIBUTION_CONTRACT, data=data, miniprogram_state=None, lang=None, page='/pages/member/activity/activity?activity_id={}'.format(act.activity_id)) |
|
85 |
+ res = sendwxasubscribemessage(openid=user.openid_miniapp, template_id=settings.TEMPLATE_ID_CONTRIBUTION_CONTRACT, data=data, miniprogram_state=None, lang=None, page='/pages/member/activity/activity?flow_id={}'.format(flow_id)) |
|
86 | 86 |
|
87 | 87 |
return response(200, 'Start Contribution Contract Sign Success', u'发起投稿授权书签署成功', data={}) |
@@ -78,9 +78,16 @@ def get_contribtion_contract_sign_mppath_api(request): |
||
78 | 78 |
|
79 | 79 |
lensman = LensmanInfo.objects.get(lensman_id=lensman_id) |
80 | 80 |
|
81 |
+ contract = LensmanContributionContractInfo.objects.get( |
|
82 |
+ user_id=user_id, |
|
83 |
+ lensman_id=lensman_id, |
|
84 |
+ flow_id=flow_id, |
|
85 |
+ ) |
|
86 |
+ |
|
81 | 87 |
scheme_url = get_contribtion_contract_sign_mppath(lensman, flow_id) |
82 | 88 |
|
83 | 89 |
return response(200, data={ |
90 |
+ 'contract': contract.mpdata, |
|
84 | 91 |
'scheme_url': scheme_url |
85 | 92 |
}) |
86 | 93 |
|