[更新]修改开放平台授权管理

This commit is contained in:
Anyon 2019-07-18 15:08:58 +08:00
parent feec1c9343
commit 44bacc3990
2 changed files with 8 additions and 8 deletions

View File

@ -37,8 +37,8 @@ class PublishHandler
* @param string $appid
* @return string
* @throws \WeChat\Exceptions\InvalidDecryptException
* @throws \think\Exception
* @throws \think\exception\PDOException
* @throws \WeChat\Exceptions\InvalidResponseException
* @throws \WeChat\Exceptions\LocalCacheException
*/
public static function handler($appid)
{
@ -55,7 +55,7 @@ class PublishHandler
return $wechat->text('TESTCOMPONENT_MSG_TYPE_TEXT_callback')->reply([], true);
} else {
$key = str_replace("QUERY_AUTH_CODE:", '', $receive['Content']);
WechatService::instance('Service')->getQueryAuthorizerInfo($key);
WechatService::service()->getQueryAuthorizerInfo($key);
return $wechat->text("{$key}_from_api")->reply([], true);
}
case 'event':

View File

@ -15,14 +15,14 @@
<label class="layui-form-item margin-top-20 block relative">
<span class="color-green margin-right-10">短信平台账号</span><span class="nowrap color-desc">Username</span>
<input name="sms_zt_username2" required placeholder="请输入助通短信平台账号" value="{:sysconf('sms_zt_username2')}" class="layui-input">
<p class="help-block">助通短信平台账号可以联系18122377655获取账号与密码</p>
<input name="sms_zt_username2" required placeholder="请输入短信平台账号" value="{:sysconf('sms_zt_username2')}" class="layui-input">
<p class="help-block">短信平台账号可以联系18122377655获取账号与密码</p>
</label>
<label class="layui-form-item margin-top-20 block relative">
<span class="color-green margin-right-10">短信平台密码</span><span class="nowrap color-desc">Password</span>
<input name="sms_zt_password2" required placeholder="请输入助通短信平台密码" value="{:sysconf('sms_zt_password2')}" class="layui-input">
<p class="help-block">助通短信平台账号可以联系18122377655获取账号与密码</p>
<input name="sms_zt_password2" required placeholder="请输入短信平台密码" value="{:sysconf('sms_zt_password2')}" class="layui-input">
<p class="help-block">短信平台账号可以联系18122377655获取账号与密码</p>
</label>
<label class="layui-form-item margin-top-20 block relative">
@ -33,7 +33,7 @@
<label class="layui-form-item margin-top-20 block relative">
<span class="color-green margin-right-10">注册短信模板</span><span class="nowrap color-desc">Template</span>
<textarea class="layui-textarea" required name="sms_reg_template2" placeholder="请输入助通短信平台密码">{:sysconf('sms_reg_template2')}</textarea>
<textarea class="layui-textarea" required name="sms_reg_template2" placeholder="请输入短信平台密码">{:sysconf('sms_reg_template2')}</textarea>
<p class="help-block">会员注册短信模板,验证码变量使用 {code} 代替</p>
</label>