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;