From 94ab823632d1cee60fa3fcc6a36c38c0f8e37b72 Mon Sep 17 00:00:00 2001 From: hitsword Date: Mon, 20 May 2019 14:07:11 +0800 Subject: [PATCH] debug Signed-off-by: hitsword --- class-wc-huayi-score.php | 2 +- includes/huayi-score-sdk.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/class-wc-huayi-score.php b/class-wc-huayi-score.php index 33f323c..186168a 100644 --- a/class-wc-huayi-score.php +++ b/class-wc-huayi-score.php @@ -133,7 +133,7 @@ class WC_Huayi_Score extends WC_Payment_Gateway { // $huayi_unionid = get_user_meta( $order->get_user_id() , 'huayi_unionid',true );//获取登录接口后的unionid if ( $huayi_uid > 0 ) { - $huayiScoreSdk = new HuayiScoreSdk(array('apiurl'=>'1','token'=>'1')); + $huayiScoreSdk = new HuayiScoreSdk(array('apiurl'=>$this->apiurl,'token'=>$this->token)); $balanceResult = $huayiScoreSdk->getBalance($huayi_uid);//获取积分余额 TODO wc_add_notice( __('结算失败:', 'huayi_score') . $balanceResult, 'error' ); return;//debug diff --git a/includes/huayi-score-sdk.php b/includes/huayi-score-sdk.php index 5a8101f..2c1f48a 100644 --- a/includes/huayi-score-sdk.php +++ b/includes/huayi-score-sdk.php @@ -18,7 +18,7 @@ class HuayiScoreSdk */ public function getBalance($huayi_uid) { - return $huayi_uid; + return $huayi_uid.$this->apiurl.$this->token; } /**