Explorar o código

【程序目录】修复APP付费会员支付问题

evoxwht %!s(int64=3) %!d(string=hai) anos
pai
achega
9cbce80009

+ 1 - 1
crmeb/app/api/controller/v1/order/OtherOrderController.php

@@ -150,7 +150,7 @@ class OtherOrderController
                             return app('json')->status('pay_error', $pay);
                             return app('json')->status('pay_error', $pay);
                     }
                     }
                 case PayServices::ALIAPY_PAY:
                 case PayServices::ALIAPY_PAY:
-                    if (!$quitUrl && $from != 'routine' && $from != 'app') {
+                    if (!$quitUrl && $from != 'routine' && !request()->isApp()) {
                         return app('json')->status('pay_error', '请传入支付宝支付回调URL', $info);
                         return app('json')->status('pay_error', '请传入支付宝支付回调URL', $info);
                     }
                     }
                     //支付金额为0
                     //支付金额为0