From b44ee6e9ebf8b0d0a7a29e283f6fe758ce4bcade Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Wed, 20 Nov 2024 13:53:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(workWechat):=20=E4=BF=AE=E5=A4=8D=E4=BA=A7?= =?UTF-8?q?=E5=93=81Offer=E6=B6=88=E6=81=AF=E4=B8=AD=E7=9A=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将变量名从 $url 改为 $urls,以匹配消息内容中的链接变量 - 修复了消息内容中下载链接的变量引用错误 --- app/common/service/workWechat/ProductOffer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/common/service/workWechat/ProductOffer.php b/app/common/service/workWechat/ProductOffer.php index e14c6620..9d966d0e 100644 --- a/app/common/service/workWechat/ProductOffer.php +++ b/app/common/service/workWechat/ProductOffer.php @@ -19,7 +19,7 @@ class ProductOffer $create_time = $data['create_time']; $buyer_name = $data['buyer_name']; $pay_type = $data['pay_type_name']; - $url=getenv('APP_URL')."/api/purchase_product_offer?date=".$data['create_time']; + $urls=getenv('APP_URL')."/api/purchase_product_offer?date=".$data['create_time']; $arr = ["msgtype" => "markdown", "markdown" => ["content" => "有新的采购商品 >订单ID:$order_id >商品名称:$store_name @@ -28,7 +28,7 @@ class ProductOffer >采购金额:$price >采购时间:$create_time >支付方式:$pay_type - [下载今日采购表格]($url)"]]; + [下载今日采购表格]($urls)"]]; (new Curl())->postJson($url, json_encode($arr, true)); } catch (\Throwable $e) { Log::error('推送商品信息保存:'.$e->getMessage());