作者 anyv
1 个管道 的构建 通过 耗费 2 秒

微信授权

... ... @@ -14,9 +14,10 @@ return [
'debug' => true,
/**
* 账号基本信息,请从微信公众平台/开放平台获取
* 校园轻松洗服务号
*/
'app_id' => 'wxb4238fbc5c39db5d', // AppID
'secret' => '9d95998ab1a23374c7235a30b53f3a3c', // AppSecret
'app_id' => 'wx52fda67eb7556b0b', // AppID
'secret' => '5c1d44b497467f9ffadebafd3598ead3', // AppSecret
'token' => 'bronet', // Token
'aes_key' => 'qblu4O3peCTWjLLEqKqLjQhJNNeCTi2se2EPeVARsbk', // EncodingAESKey,安全模式下请一定要填写!!!
/**
... ...
<?php
namespace app\portal\controller;
use cmf\controller\WeChatBaseController;
use EasyWeChat\Foundation\Application;
use EasyWeChat\Payment\Order;
use think\Db;
class WeixinController extends WeChatBaseController{
protected $options;
public function _initialize()
{
parent::_initialize();
$this->checkWeChatUserLogin();
$this->options = [
'app_id' => config('wechat_config.app_id'),
'secret' => config('wechat_config.secret'),
];
}
public function index(){
return $this -> fetch();
}
}
\ No newline at end of file
... ...
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>澳德综合健康</title>
<link rel="stylesheet" href="__TMPL__/public/assets/css/base.css">
<script src="__TMPL__/public/assets/js/base.js"></script>
</head>
<body>
<!--header-->
<header class="header">
<img src="img/bicon (1).png" alt="">
</header>
<!-- 内容 -->
<div class="in_box">
<ul>
<li>
<a href="index_detail1.html">
<img src="img/bicon (2).png" alt="">
<p>关于我们</p>
</a>
</li>
<li>
<a href="index_detail2.html">
<img src="img/bicon (3).png" alt="">
<p>使命與願景</p>
</a>
</li>
<li>
<a href="index_detail3.html">
<img src="img/bicon (4).png" alt="">
<p>核心醫療團隊</p>
</a>
</li>
</ul>
</div>
</body>
</html>
\ No newline at end of file
... ...