Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9186f7a

Browse files
committed
对接调整前端微信公众号h5页面
1 parent ec90a3d commit 9186f7a

File tree

10 files changed

+1107
-363
lines changed

10 files changed

+1107
-363
lines changed

‎README.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,19 @@
124124
#### 快速开发应用
125125
![](https://i.loli.net/2021/11/29/StAMiRD1jPJEc9Z.png)
126126

127+
128+
#### 微信公众号测试号
129+
![微信测试号2.png](https://s2.loli.net/2021/12/10/M2BVRZQDvqjahTo.png)
130+
131+
132+
#### 测试号菜单
133+
![测试号菜单](https://s2.loli.net/2021/12/10/kbzDur6sIhC7FTO.jpg)
134+
135+
#### 测试号H5页面
136+
![测试号H5页面](https://s2.loli.net/2021/12/10/sS2duifVE4B59he.png)
137+
138+
139+
127140
## 4、技术文档
128141
### [后端快速部署](back.md)
129142
### [前端快速部署](front.md)

‎api/.env.example‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ JWT_SECRET=5P3U1ZKauzoCErvTTphe92tEdDo1hym82XloZ38kgmtN8mgxINGoEzMr26BNRR1u
6060
WECHAT_PAYMENT_APPID=
6161
WECHAT_PAYMENT_MCH_ID=
6262
WECHAT_PAYMENT_KEY=
63-
WECHAT_PAYMENT_CERT_PATH=D:\wmhello.mynatapp.cc\wx\cert\apiclient_cert.pem
64-
WECHAT_PAYMENT_KEY_PATH=D:\wmhello.mynatapp.cc\wx\cert\apiclient_key.pem
63+
WECHAT_PAYMENT_CERT_PATH=
64+
WECHAT_PAYMENT_KEY_PATH=
6565
WECHAT_PAYMENT_NOTIFY_URL=
6666

6767
## 微信小程序配置

‎api/app/Http/Controllers/Admin/WechatController.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace App\Http\Admin\Controllers;
3+
namespace App\Http\Controllers\Admin;
44

55
use App\Models\Wechat;
66
use Illuminate\Http\Request;

‎api/app/Http/Controllers/Wx/WxController.php‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -147,17 +147,7 @@ public function createMenu()
147147
"sub_button" => [
148148
[
149149
"type" => "view",
150-
"name" => "百度",
151-
"url" => "http://www.baidu.com/"
152-
],
153-
[
154-
"type" => "view",
155-
"name" => "授权页面1",
156-
"url" => "http://wmhello.mynatapp.cc/api/oauth1"
157-
],
158-
[
159-
"type" => "view",
160-
"name" => "获取个人信息",
150+
"name" => "H5页面",
161151
"url" => "http://wechat.halian.net/"
162152
]
163153
],
@@ -466,7 +456,7 @@ public function start_oauth(Request $request)
466456
'aes_key' => config('wechat.official_account.default.aes_key', ''), // EncodingAESKey
467457
'oauth' => [
468458
'scopes' => ['snsapi_userinfo'],
469-
'callback' => $http_host.'/api/oauth?end_url='.$end_url
459+
'callback' => $http_host.'/api/wx/oauth?end_url='.$end_url
470460
],
471461
];
472462
$app = Factory::officialAccount($config);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /