Ejemplo n.º 1
0
def share(request):
    """jssdk 分享"""
    url = "http://" + request.get_host() + request.path
    sign = Helper.jsapi_sign(url)
    sign["appId"] = WxPayConf_pub.APPID
    return render_to_response("share.html", {"jsapi": sign})
Ejemplo n.º 2
0
def share(request):
    """jssdk 分享"""
    url = "http://" + request.get_host() + request.path
    sign = Helper.jsapi_sign(url)
    sign["appId"] = WxPayConf_pub.APPID
    return render_to_response("share.html", {"jsapi": sign})
Ejemplo n.º 3
0
def jsapi_sign(request):
    url = "http://" + request.get_host() + request.path
    sign = Helper.jsapi_sign(url)
    sign["appId"] = WxPayConf_pub.APPID
    return json.dumps(sign)
Ejemplo n.º 4
0
def get_jsApi(request):
	url = "http://" + request.get_host() + request.get_full_path()
	sign = Helper.jsapi_sign(url)
	sign["appId"] = WxPayConf_pub.APPID
	return json.dumps(sign)