"lines-code">
+ window.location.reload();
+ }
+ }
+ })
+ }
+ }
})
</script>
</body>
@@ -460,7 +460,7 @@ |
||
| 460 | 460 |
// 9 微信原生接口 |
| 461 | 461 |
// 9.1.1 扫描二维码并返回结果 |
| 462 | 462 |
// 9.1.2 扫描二维码并返回结果 |
| 463 |
- function scanQRCode(scan_params) {
|
|
| 463 |
+ function scanQRCode(scan_params) {
|
|
| 464 | 464 |
if ('undefined' === typeof scan_params) scan_params = {}
|
| 465 | 465 |
wx.scanQRCode({
|
| 466 | 466 |
needResult: scan_params.needResult || 0, // 默认为0,0扫描结果由微信处理,1直接返回扫描结果 |
@@ -479,7 +479,7 @@ |
||
| 479 | 479 |
|
| 480 | 480 |
// 10 微信支付接口 |
| 481 | 481 |
// 10.1 发起一个支付请求 |
| 482 |
- function chooseWXPay(wxpay_params) {
|
|
| 482 |
+ function chooseWXPay(wxpay_params) {
|
|
| 483 | 483 |
wx.chooseWXPay({
|
| 484 | 484 |
timestamp: wxpay_params.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符 |
| 485 | 485 |
nonceStr: wxpay_params.nonceStr, // 支付签名随机串,不长于 32 位 |
@@ -495,7 +495,7 @@ |
||
| 495 | 495 |
|
| 496 | 496 |
// xx 微信原生企业红包接口 |
| 497 | 497 |
// xx.1 发起一个发送原生企业红包请求 |
| 498 |
- function openEnterpriseRedPacket(wxredpack_params) {
|
|
| 498 |
+ function openEnterpriseRedPacket(wxredpack_params) {
|
|
| 499 | 499 |
wx.openEnterpriseRedPacket({
|
| 500 | 500 |
timeStamp: wxredpack_params.timeStamp, // 红包签名时间戳,注意原生企业红包接口timeStamp字段名需大写其中的S字符,而支付接口timeStamp字段名无需大写其中的S字符。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符 |
| 501 | 501 |
nonceStr: wxredpack_params.nonceStr, // 红包签名随机串,不长于 32 位 |
@@ -22,7 +22,7 @@ from django.contrib import admin |
||
| 22 | 22 |
from rest_framework import routers |
| 23 | 23 |
|
| 24 | 24 |
from account import account_views |
| 25 |
-from group import group_views, grouppage_views |
|
| 25 |
+from group import group_views, grouppage_views, groupuser_views, tourguidegroupuser_views |
|
| 26 | 26 |
from miniapp import views as mini_views |
| 27 | 27 |
from pay import views as pay_views |
| 28 | 28 |
from photo import views as photo_views |
@@ -81,6 +81,10 @@ urlpatterns += [ |
||
| 81 | 81 |
url(r'^mini/order_create$', pay_views.wx_order_create_api, name='wx_order_create_api'), # 订单创建 |
| 82 | 82 |
url(r'^mini/order_query$', pay_views.wx_order_query_api, name='wx_order_query_api'), # 订单查询补单 |
| 83 | 83 |
|
| 84 |
+ url(r'^s/join$', photo_views.session_join_api, name='session_join_api'), # Session 加群 |
|
| 85 |
+ url(r'^g/join$', groupuser_views.group_user_join_api, name='group_join_api'), # 群成员加群 |
|
| 86 |
+ url(r'^tgu/join$', tourguidegroupuser_views.tgu_group_user_join_api, name='tgu_group_user_join_api'), # 旅行团成员加团 |
|
| 87 |
+ |
|
| 84 | 88 |
url(r'^f/bought$', group_views.lensman_photo_bought, name='lensman_photo_bought'), # 摄影师照片已购买 |
| 85 | 89 |
] |
| 86 | 90 |
|