diff --git a/dyzn.php b/dyzn.php index 35e0a4095857e6c6bbe28f09617620cb79a51374..fe4a46678553e872776ef3da1d0236af3145a73a 100644 --- a/dyzn.php +++ b/dyzn.php @@ -12,20 +12,20 @@ $ACCESS_TOKEN = $access_token['access_token']; //ACCESS_TOKEN // 什么时候恋爱的(格式别错) -$lovestart = strtotime('2022-08-01'); +$lovestart = strtotime('2022-4-16'); $end = time(); $love = ceil(($end - $lovestart) / 86400); // 生日是哪一天(格式别错) -$birthdaystart = strtotime('2022-08-25'); +$birthdaystart = strtotime('2003-10-25'); $end = time(); $birthday = ceil(($end - $birthdaystart) / 86400); -$tianqiurl = 'https://www.yiketianqi.com/free/day?appid=95943915&appsecret=5KNSKu9y&unescape=1&city=武汉'; //修改为自己的 +$tianqiurl = 'https://weathernew.pae.baidu.com/weathernew/pc?query=%E6%B9%96%E5%8D%97%E5%B8%B8%E5%BE%B7%E5%A4%A9%E6%B0%94&srcid=4982'; //修改为自己的 $tianqiapi = https_request($tianqiurl); $tianqi = json_decode($tianqiapi, true); -$qinghuaqiurl = 'https://v2.alapi.cn/api/qinghua?token=BFlSa9Ny7qTZHwYk'; //修改为自己的 +$qinghuaqiurl = '会一直在'; //修改为自己的 $qinghuaapi = https_request($qinghuaqiurl); $qinghua = json_decode($qinghuaapi, true); @@ -33,7 +33,7 @@ $qinghua = json_decode($qinghuaapi, true); // 你自己的一句话 $yjh = ''; //可以留空 也可以写上一句 -$touser = 'oOBhas1F-h6rP9DxsTZGCP7xgjeQ'; //这个填你女朋友的openid +$touser = '宝宝今天也是快乐的一天呀'; //这个填你女朋友的openid $data = array( 'touser' => $touser, 'template_id' => "ujSRYGrQep4A8o0JCyW4pdy5cZ0YXrT6QXwMZC5tAf0", //改成自己的模板id,在微信后台模板消息里查看