更新ios
This commit is contained in:
10
app.py
10
app.py
@@ -3786,10 +3786,14 @@ def wechat_h5_payment_callback():
|
|||||||
return redirect(redirect_url)
|
return redirect(redirect_url)
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"[微信H5支付] 回调处理失败: {e}")
|
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
error_detail = traceback.format_exc()
|
||||||
return redirect(f'https://valuefrontier.cn/home/pages/account/subscription?wechat_pay_error=callback_failed')
|
print(f"[微信H5支付] 回调处理失败: {e}")
|
||||||
|
print(f"[微信H5支付] 详细错误: {error_detail}")
|
||||||
|
# 临时:将错误信息编码后传递给前端,方便调试
|
||||||
|
import urllib.parse
|
||||||
|
error_msg = urllib.parse.quote(str(e)[:100])
|
||||||
|
return redirect(f'https://valuefrontier.cn/home/pages/account/subscription?wechat_pay_error=callback_failed&detail={error_msg}')
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/payment/wechat/jsapi/create-order', methods=['POST'])
|
@app.route('/api/payment/wechat/jsapi/create-order', methods=['POST'])
|
||||||
|
|||||||
Reference in New Issue
Block a user