no message

Change-Id: I89aa17f4b1fa7c6620d8704876f4df95c9fd2d6d
This commit is contained in:
gyw 2024-04-15 14:36:14 +08:00
parent 3701053505
commit 46493d2ca7
1 changed files with 3 additions and 4 deletions

View File

@ -216,9 +216,8 @@ if($act == 'applet_unifiedorder') {
$cInfo = $db->get_one("select * from tb_company where id=". $company_id); $cInfo = $db->get_one("select * from tb_company where id=". $company_id);
if(!$cInfo) exit; if(!$cInfo) exit;
$applet_mch_id = $cInfo['wxpay_mch_id'];
$applet_appid = $cInfo['wxpay_appid']; $applet_appid = $cInfo['wxpay_appid'];
$applet_mch_id = $cInfo['wxpay_mch_id'];
$applet_key = $cInfo['wxpay_key']; $applet_key = $cInfo['wxpay_key'];
if(!$applet_mch_id || !$applet_appid || !$applet_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")); $code = get_code('tb_recharge_pay_weixin', 'code', 12, 'num', "FTDC".date("Ymd"));
$time_expire = date("YmdHis", time()+600); $time_expire = date("YmdHis", time()+600);
$data = array(); $data = array();
$data['appid'] = $applet_mch_id; $data['appid'] = $applet_appid;
$data['body'] = '订餐系统-充值'.($total_fee/100).""; $data['body'] = '订餐系统-充值'.($total_fee/100)."";
$data['mch_id'] = $applet_appid; $data['mch_id'] = $applet_mch_id;
$data['nonce_str'] = md5(time()."_".rand()); $data['nonce_str'] = md5(time()."_".rand());
$data['notify_url'] = "https://yzms.fsecity.com/show/wxpay_recv.php"; $data['notify_url'] = "https://yzms.fsecity.com/show/wxpay_recv.php";
$data['out_trade_no'] = $code; $data['out_trade_no'] = $code;