's'
This commit is contained in:
@@ -110,7 +110,7 @@ async def payh5(item: dict):
|
||||
name = type_map.get(item.get('type'), "商品支付")
|
||||
|
||||
# notify_url = "https://www.hackrobot.cn/xorpay_notify" # 建议使用完整路径,避免冲突
|
||||
notify_url = "https://d25ce329c4d7.ngrok-free.app/xorpay_notify" # 建议使用完整路径,避免冲突
|
||||
notify_url = "https://api.hackrobot.cnp/xorpay_notify" # 建议使用完整路径,避免冲突
|
||||
|
||||
params = {
|
||||
"name": name,
|
||||
@@ -221,7 +221,7 @@ async def xorpay_notify(request: Request):
|
||||
pay_type = "unknown"
|
||||
|
||||
print(f"支付成功,用户ID: {user_id},类型: {pay_type},订单: {order_id}")
|
||||
|
||||
|
||||
# 在解析完 pay_type 后,只有 vip 才调用
|
||||
if pay_type == "vip":
|
||||
create_memos_user(user_id) # 直接传 user_id,密码默认 123456
|
||||
|
||||
Reference in New Issue
Block a user