正在显示
3 个修改的文件
包含
77 行增加
和
2 行删除
@@ -14,9 +14,10 @@ return [ | @@ -14,9 +14,10 @@ return [ | ||
14 | 'debug' => true, | 14 | 'debug' => true, |
15 | /** | 15 | /** |
16 | * 账号基本信息,请从微信公众平台/开放平台获取 | 16 | * 账号基本信息,请从微信公众平台/开放平台获取 |
17 | + * 校园轻松洗服务号 | ||
17 | */ | 18 | */ |
18 | - 'app_id' => 'wxb4238fbc5c39db5d', // AppID | ||
19 | - 'secret' => '9d95998ab1a23374c7235a30b53f3a3c', // AppSecret | 19 | + 'app_id' => 'wx52fda67eb7556b0b', // AppID |
20 | + 'secret' => '5c1d44b497467f9ffadebafd3598ead3', // AppSecret | ||
20 | 'token' => 'bronet', // Token | 21 | 'token' => 'bronet', // Token |
21 | 'aes_key' => 'qblu4O3peCTWjLLEqKqLjQhJNNeCTi2se2EPeVARsbk', // EncodingAESKey,安全模式下请一定要填写!!! | 22 | 'aes_key' => 'qblu4O3peCTWjLLEqKqLjQhJNNeCTi2se2EPeVARsbk', // EncodingAESKey,安全模式下请一定要填写!!! |
22 | /** | 23 | /** |
app/portal/controller/WeixinController.php
0 → 100644
1 | +<?php | ||
2 | +namespace app\portal\controller; | ||
3 | + | ||
4 | +use cmf\controller\WeChatBaseController; | ||
5 | +use EasyWeChat\Foundation\Application; | ||
6 | +use EasyWeChat\Payment\Order; | ||
7 | +use think\Db; | ||
8 | + | ||
9 | +class WeixinController extends WeChatBaseController{ | ||
10 | + | ||
11 | + protected $options; | ||
12 | + public function _initialize() | ||
13 | + { | ||
14 | + parent::_initialize(); | ||
15 | + $this->checkWeChatUserLogin(); | ||
16 | + $this->options = [ | ||
17 | + 'app_id' => config('wechat_config.app_id'), | ||
18 | + 'secret' => config('wechat_config.secret'), | ||
19 | + | ||
20 | + ]; | ||
21 | + } | ||
22 | + | ||
23 | + public function index(){ | ||
24 | + | ||
25 | + return $this -> fetch(); | ||
26 | + | ||
27 | + } | ||
28 | + | ||
29 | + | ||
30 | +} |
1 | +<!doctype html> | ||
2 | +<html lang="en"> | ||
3 | + | ||
4 | +<head> | ||
5 | + <meta charset="UTF-8"> | ||
6 | + <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | ||
7 | + <meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
8 | + <title>澳德综合健康</title> | ||
9 | + <link rel="stylesheet" href="__TMPL__/public/assets/css/base.css"> | ||
10 | + <script src="__TMPL__/public/assets/js/base.js"></script> | ||
11 | +</head> | ||
12 | + | ||
13 | +<body> | ||
14 | +<!--header--> | ||
15 | +<header class="header"> | ||
16 | + <img src="img/bicon (1).png" alt=""> | ||
17 | +</header> | ||
18 | +<!-- 内容 --> | ||
19 | +<div class="in_box"> | ||
20 | + <ul> | ||
21 | + <li> | ||
22 | + <a href="index_detail1.html"> | ||
23 | + <img src="img/bicon (2).png" alt=""> | ||
24 | + <p>关于我们</p> | ||
25 | + </a> | ||
26 | + </li> | ||
27 | + <li> | ||
28 | + <a href="index_detail2.html"> | ||
29 | + <img src="img/bicon (3).png" alt=""> | ||
30 | + <p>使命與願景</p> | ||
31 | + </a> | ||
32 | + | ||
33 | + </li> | ||
34 | + <li> | ||
35 | + <a href="index_detail3.html"> | ||
36 | + <img src="img/bicon (4).png" alt=""> | ||
37 | + <p>核心醫療團隊</p> | ||
38 | + </a> | ||
39 | + </li> | ||
40 | + </ul> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | + | ||
44 | +</html> |
-
请 注册 或 登录 后发表评论