From 794dd1e3cfe3cb6f4b22189e3fb9b290acef247e Mon Sep 17 00:00:00 2001 From: lixiaoyu <1906596264@qq.com> Date: Fri, 22 Sep 2023 14:38:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=88=A4=E6=96=AD=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mobile/source/apps/flow/controllers/IndexController.php | 1 - mobile/source/apps/flow/views/done.html | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mobile/source/apps/flow/controllers/IndexController.php b/mobile/source/apps/flow/controllers/IndexController.php index d6dc0a9..47e0610 100755 --- a/mobile/source/apps/flow/controllers/IndexController.php +++ b/mobile/source/apps/flow/controllers/IndexController.php @@ -1034,7 +1034,6 @@ class IndexController extends FrontendController { { include_once('plugins/payment/' . $payment['pay_code'] . '.php'); - var_dump($payment['pay_code']); $pay_obj = new $payment['pay_code']; $pay_online = $pay_obj->get_code($order, unserialize_config($payment['pay_config'])); diff --git a/mobile/source/apps/flow/views/done.html b/mobile/source/apps/flow/views/done.html index 421d900..073265e 100755 --- a/mobile/source/apps/flow/views/done.html +++ b/mobile/source/apps/flow/views/done.html @@ -39,6 +39,15 @@
+ wx.miniProgram.getEnv(function(res) { + if(res.miniprogram){ + console.log(123) + // true代表在小程序里 + }else{ + console.log(456) + //false代表在公众号里 + } + }) {$pay_online}