def redirectAlipay(alipayHashcode): alipayUrl = Diagnose.getAlipayUrl(alipayHashcode) if alipayUrl is None: return redirect(ERROR_URL) #return redirect("/pdf") #print url_for('user_center.generatorPdf',diagnoseName='ccheng') return redirect(alipayUrl[0])
def redirectAlipay(alipayHashcode): alipayUrl=Diagnose.getAlipayUrl(alipayHashcode) if alipayUrl is None: return redirect(ERROR_URL) #return redirect("/pdf") #print url_for('user_center.generatorPdf',diagnoseName='ccheng') return redirect(alipayUrl[0])