From a91dd733a13f30a4fdd604790c3d3df0e955aea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E9=92=B0?= <11496230+yuziwang@user.noreply.gitee.com> Date: Mon, 22 Aug 2022 05:34:41 +0000 Subject: [PATCH] 1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王文钰 <11496230+yuziwang@user.noreply.gitee.com> --- dyzn.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dyzn.php b/dyzn.php index 35e0a40..864bf6e 100644 --- a/dyzn.php +++ b/dyzn.php @@ -3,8 +3,8 @@ // 9- 长按复制此条消息,打开抖音搜索,查看TA的更多作品。 https://v.douyin.com/jxEn81T/ -$appId = '1'; //对应自己的appId -$appSecret = '2'; //对应自己的appSecret +$appId = 'wx804383180c23c68f'; //对应自己的appId +$appSecret = '96cbd590276266e9b5bf314bcdae7a6a'; //对应自己的appSecret $wxgzhurl = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=" . $appId . "&secret=" . $appSecret; $access_token_Arr = https_request($wxgzhurl); $access_token = json_decode($access_token_Arr, true); @@ -12,12 +12,12 @@ $ACCESS_TOKEN = $access_token['access_token']; //ACCESS_TOKEN // 什么时候恋爱的(格式别错) -$lovestart = strtotime('2022-08-01'); +$lovestart = strtotime('2022-02-01'); $end = time(); $love = ceil(($end - $lovestart) / 86400); // 生日是哪一天(格式别错) -$birthdaystart = strtotime('2022-08-25'); +$birthdaystart = strtotime('2022-08-10'); $end = time(); $birthday = ceil(($end - $birthdaystart) / 86400); @@ -33,10 +33,10 @@ $qinghua = json_decode($qinghuaapi, true); // 你自己的一句话 $yjh = ''; //可以留空 也可以写上一句 -$touser = 'oOBhas1F-h6rP9DxsTZGCP7xgjeQ'; //这个填你女朋友的openid +$touser = 'opNNX68MCs6756inzPcDz0X_4qXk'; //这个填你女朋友的openid $data = array( 'touser' => $touser, - 'template_id' => "ujSRYGrQep4A8o0JCyW4pdy5cZ0YXrT6QXwMZC5tAf0", //改成自己的模板id,在微信后台模板消息里查看 + 'template_id' => "b4zCvnWKv97udGkQsYUIbi_qek7QxfQqooioUSereb8", //改成自己的模板id,在微信后台模板消息里查看 'data' => array( 'first' => array( 'value' => "$yjh", -- Gitee