From 46493d2ca7459db5c0b32f1d62fdeaa4544d9ee1 Mon Sep 17 00:00:00 2001 From: gyw <584683237@qq.com> Date: Mon, 15 Apr 2024 14:36:14 +0800 Subject: [PATCH] no message Change-Id: I89aa17f4b1fa7c6620d8704876f4df95c9fd2d6d --- show/get.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/show/get.php b/show/get.php index bc00b5e..90df10f 100644 --- a/show/get.php +++ b/show/get.php @@ -216,9 +216,8 @@ if($act == 'applet_unifiedorder') { $cInfo = $db->get_one("select * from tb_company where id=". $company_id); if(!$cInfo) exit; - - $applet_mch_id = $cInfo['wxpay_mch_id']; $applet_appid = $cInfo['wxpay_appid']; + $applet_mch_id = $cInfo['wxpay_mch_id']; $applet_key = $cInfo['wxpay_key']; if(!$applet_mch_id || !$applet_appid || !$applet_key) { @@ -238,9 +237,9 @@ if($act == 'applet_unifiedorder') { $code = get_code('tb_recharge_pay_weixin', 'code', 12, 'num', "FTDC".date("Ymd")); $time_expire = date("YmdHis", time()+600); $data = array(); - $data['appid'] = $applet_mch_id; + $data['appid'] = $applet_appid; $data['body'] = '订餐系统-充值'.($total_fee/100)."元"; - $data['mch_id'] = $applet_appid; + $data['mch_id'] = $applet_mch_id; $data['nonce_str'] = md5(time()."_".rand()); $data['notify_url'] = "https://yzms.fsecity.com/show/wxpay_recv.php"; $data['out_trade_no'] = $code;