From f79c3413d81782d6cf9bd06dee77f053c08436ca Mon Sep 17 00:00:00 2001 From: Anyon Date: Mon, 12 Oct 2020 14:41:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wechat/controller/Config.php | 9 +++++++ app/wechat/view/config/options.html | 14 ++++++----- .../config/{options_tst.html => testapi.html} | 24 +++++++------------ app/wechat/view/keys/index.html | 11 ++++----- 4 files changed, 29 insertions(+), 29 deletions(-) rename app/wechat/view/config/{options_tst.html => testapi.html} (75%) diff --git a/app/wechat/controller/Config.php b/app/wechat/controller/Config.php index f905ade84..aff51e588 100644 --- a/app/wechat/controller/Config.php +++ b/app/wechat/controller/Config.php @@ -75,6 +75,15 @@ class Config extends Controller } } + /** + * 接口功能测试 + * @auth true + */ + public function testapi() + { + $this->fetch(); + } + /** * 配置微信支付 * @auth true diff --git a/app/wechat/view/config/options.html b/app/wechat/view/config/options.html index 3f08046eb..82e01c054 100644 --- a/app/wechat/view/config/options.html +++ b/app/wechat/view/config/options.html @@ -1,24 +1,26 @@ {extend name="../../admin/view/main"} -{block name="content"} +{block name="button"} + + + +{/block} +{block name="content"}
-
- {foreach ['api'=>'微信公众平台直接模式','thr'=>'微信开放平台授权模式','test'=>'微信接口功能测试'] as $k=>$v} +
+ {foreach ['api'=>'微信公众平台直接模式','thr'=>'微信开放平台授权模式'] as $k=>$v} {/foreach}

请选择微信对接方式,其中微信开放平台授权模式是需要微信开放平台支持,还需要搭建微信授权服务!

-
{include file='config/options_api'}
{include file='config/options_thr'}
-
{include file='config/options_tst'}
- {/block} {block name='script'} diff --git a/app/wechat/view/config/options_tst.html b/app/wechat/view/config/testapi.html similarity index 75% rename from app/wechat/view/config/options_tst.html rename to app/wechat/view/config/testapi.html index cdc331b6c..3023a9d4c 100644 --- a/app/wechat/view/config/options_tst.html +++ b/app/wechat/view/config/testapi.html @@ -1,23 +1,16 @@ -
- -
-
- 微信常用功能测试案例,请使用微信扫描下面的二维码进行测试,具体请检查公众号是否拥有对应的产品功能。 -
-
- -
+
+
-

微信开放平台授权

+

微信开放平台授权

JSSDK 签名测试需要在开放平台配置当前的授权域名:{:request()->host()}

-

公众号平台接口域名授权

-

网页授权及 JSSDK 签名都需要在公众号平台配置授权域名:{:request()->host()}

+

公众号平台域名授权

+

网页授权及 JSSDK 签名都需要在公众号平台授权域名:{:request()->host()}

-
-

支付测试配置

+
+

微信商户支付测试配置

JSAPI 支付测试需要在微信商户平台配置支付目录:{:sysuri('wechat/api.test/index',[],'',true)}

扫码支付①需要在微信商户平台配置支付通知地址:{:url('wechat/api.test/scan_one_notify',[],'',true)}

@@ -44,6 +37,5 @@

扫码支付②

-
- +
\ No newline at end of file diff --git a/app/wechat/view/keys/index.html b/app/wechat/view/keys/index.html index 93888e937..2527ef4c7 100644 --- a/app/wechat/view/keys/index.html +++ b/app/wechat/view/keys/index.html @@ -1,15 +1,12 @@ {extend name="../../admin/view/main"} {block name="button"} - -{if auth("add")} + -{/if} - -{if auth("remove")} + + -{/if} - + {/block} {block name='content'}