edit-library-require
This commit is contained in:
@@ -6,6 +6,7 @@ defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
* Date: 2021/09/02
|
||||
* Time: 17:45
|
||||
*/
|
||||
require_once COMMPATH.'libraries/WechatPayV3.php';
|
||||
class Profinish extends HD_Controller
|
||||
{
|
||||
private $log_file = 'profinish.log';
|
||||
@@ -37,7 +38,6 @@ class Profinish extends HD_Controller
|
||||
|
||||
public function edit()
|
||||
{
|
||||
|
||||
$sub_mchid = $this->input->post('sub_mchid');
|
||||
$transaction_id = $this->input->post('transaction_id');
|
||||
$description = $this->input->post('description');
|
||||
@@ -48,7 +48,6 @@ class Profinish extends HD_Controller
|
||||
$out_order_no = create_order_no();
|
||||
$this->config->load('wxpay');
|
||||
$wx_config = $this->config->item('default');
|
||||
$this->load->library('WechatPayV3');
|
||||
$params = [
|
||||
'merchantId' => $wx_config['mchid'],
|
||||
'merchantSerialNumber' => $wx_config['merchantSerialNumber'],
|
||||
|
||||
@@ -8,6 +8,7 @@ defined('WXAPP_APP') OR exit('No direct script access allowed');
|
||||
* Time: 19:47
|
||||
*/
|
||||
require_once APPPATH . 'controllers/wxapp/Wxapp.php';
|
||||
require_once COMMPATH.'libraries/WechatPayV3.php';
|
||||
class Payment extends Wxapp{
|
||||
|
||||
public function __construct($inputs, $app_key){
|
||||
@@ -40,7 +41,6 @@ class Payment extends Wxapp{
|
||||
|
||||
$this->config->load('wxpay');
|
||||
$wx_config = $this->config->item('default');
|
||||
$this->load->library('WechatPayV3');
|
||||
$params = [
|
||||
'merchantId' => $wx_config['mchid'],
|
||||
'merchantSerialNumber' => $wx_config['merchantSerialNumber'],
|
||||
|
||||
Reference in New Issue
Block a user