Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #9

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,10 @@ dump.rdb


# env
/.env
/.env
api/runtime/
backend/runtime/
cache/
console/runtime/
frontend/runtime/
web/storage/install.txt
4 changes: 2 additions & 2 deletions wechat/config/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
'seoTitle' => '微信热文精选,微信文章,微信分享,微信美文收录,微信公众号和热门文章,微信大全,微信朋友圈好文章',
'seoSeparator' => '_',
'icp' => '京ICP备15065774号',
'wxAppId' => 'wx2d5c95252ba671cf',
'wxAppSecret' => 'af6059c4d91063fb73a0f9b51f0a34d4',
'wxAppId' => 'wxdc4ff0e641538b64',
'wxAppSecret' => '60454f45cca4bb138d4b13f6640522b5',
'wxNonceStr' => 'hehe',
];
3 changes: 2 additions & 1 deletion wechat/controllers/SiteController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ private function checkSignature()
$timestamp = Yii::$app->request->get('timestamp');
$nonce = Yii::$app->request->get('nonce');

$token = Yii::$app->config->get('wx_token');
$token = Yii::$app->config->get('wx_token'); //从系统配置中读取token
$token ='kYFTplb8f38boTJXl9QHcJbTLpPEYlhO';//写死token
$tmpArr = [$token, $timestamp, $nonce];
sort($tmpArr, SORT_STRING);
$tmpStr = implode($tmpArr);
Expand Down