|
@@ -316,7 +316,7 @@ class Lave extends Api
|
|
|
// $arr['trade_type'] = 'PAP';
|
|
// $arr['trade_type'] = 'PAP';
|
|
|
// $arr['contract_id'] = Company::where('id', $cid)->value('contract_id');
|
|
// $arr['contract_id'] = Company::where('id', $cid)->value('contract_id');
|
|
|
// $rs = WechatService::paymentOrder($openid, $orderInfo['order_id'], $orderInfo['amount'], "lave", $orderInfo['order_name'], '', 'JSAPI', [], $cid);
|
|
// $rs = WechatService::paymentOrder($openid, $orderInfo['order_id'], $orderInfo['amount'], "lave", $orderInfo['order_name'], '', 'JSAPI', [], $cid);
|
|
|
-
|
|
|
|
|
|
|
+ $mch_id =Company::where('id',$cid)->value('pay_weixin_mchid');
|
|
|
$where1['cid']=$cid;
|
|
$where1['cid']=$cid;
|
|
|
$where1['user_id']=$v['uid'];
|
|
$where1['user_id']=$v['uid'];
|
|
|
$where1['order_name']=$v['order_name'];
|
|
$where1['order_name']=$v['order_name'];
|
|
@@ -334,12 +334,10 @@ class Lave extends Api
|
|
|
$where1['contract_code']=$v['contract_code'];
|
|
$where1['contract_code']=$v['contract_code'];
|
|
|
$where1['plan_id']=$v['plan_id'];
|
|
$where1['plan_id']=$v['plan_id'];
|
|
|
// $where1['help_id']='0';
|
|
// $where1['help_id']='0';
|
|
|
- @file_put_contents("quanju.txt", json_encode($where1)."测试申请扣款2-\r\n", 8);
|
|
|
|
|
$order = LaveMonthModel::create($where1);
|
|
$order = LaveMonthModel::create($where1);
|
|
|
// }
|
|
// }
|
|
|
- var_dump($order);
|
|
|
|
|
- die();
|
|
|
|
|
- $rs = WechatService::papPayApply($arr['out_trade_no'], $arr['total_fee'], "lave", '月捐款', 'PAP', [], $cid,$arr['mch_id'],$arr['contract_id']);
|
|
|
|
|
|
|
+ $rs = WechatService::papPayApply($mch_id,$where1['order_id'], $where1['amount'], "lave", '月捐款', 'PAP', [], $cid,$v['contract_id']);
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|