|
@@ -158,14 +158,14 @@ class IcloudMeal(View):
|
|
|
if pay_type == 1: # PayPal支付
|
|
|
res_dict = cls.create_paypal_payment(lang, order_id, price, currency, content)
|
|
|
if not res_dict:
|
|
|
- return response.json(10, 'create ai order failed')
|
|
|
+ return response.json(10, 'create icloud order failed')
|
|
|
order_dict['paymentID'], order_dict['pay_url'] = res_dict['payment_id'], res_dict['pay_url']
|
|
|
res_data = {'orderID': order_id, 'redirectUrl': order_dict['pay_url']}
|
|
|
|
|
|
elif pay_type == 2: # 支付宝支付
|
|
|
res_dict = cls.create_alipay_payment(lang, order_id, price, title, content)
|
|
|
if not res_dict:
|
|
|
- return response.json(10, 'create ai order failed')
|
|
|
+ return response.json(10, 'create icloud order failed')
|
|
|
order_dict['pay_url'] = res_dict['pay_url']
|
|
|
res_data = {'orderID': order_id, 'redirectUrl': order_dict['pay_url']}
|
|
|
|
|
@@ -173,7 +173,7 @@ class IcloudMeal(View):
|
|
|
ip = CommonService.get_ip_address(request)
|
|
|
res_dict = cls.create_wechat_payment(lang, order_id, price, ip, content)
|
|
|
if not res_dict:
|
|
|
- return response.json(10, 'create ai order failed')
|
|
|
+ return response.json(10, 'create icloud order failed')
|
|
|
order_dict['pay_url'], sign_params = res_dict['pay_url'], res_dict['sign_params']
|
|
|
res_data = {'orderID': order_id, 'redirectUrl': order_dict['pay_url'], 'result': sign_params}
|
|
|
else:
|