diff --git a/crmeb/services/wechat/v3pay/PayClient.php b/crmeb/services/wechat/v3pay/PayClient.php index 07b40d0..0361cef 100644 --- a/crmeb/services/wechat/v3pay/PayClient.php +++ b/crmeb/services/wechat/v3pay/PayClient.php @@ -453,8 +453,11 @@ class PayClient extends BaseClient */ public function configForAppPayment(string $prepayId): array { + /* ⚠️ App 支付必须用「开放平台移动应用」的 appid(appAppid), + 不能用公众号 appid(wechatAppid)—— 下单用的是 appAppid(见 appPay()), + 两边不一致会导致客户端调起微信支付时报 appid/签名不匹配(2026-10-26 修复)。 */ $params = [ - 'appid' => $this->config->wechatAppid, + 'appid' => $this->config->appAppid, 'partnerid' => $this->config->mchId, 'prepayid' => $prepayId, 'noncestr' => uniqid(),