From ab111ab9838144d9c0879f953211df25db4f7522 Mon Sep 17 00:00:00 2001 From: hitsword Date: Mon, 20 May 2019 14:14:51 +0800 Subject: [PATCH] =?UTF-8?q?todo=20=E6=8E=A5=E5=8F=A3=E5=92=8C=E4=B8=9A?= =?UTF-8?q?=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hitsword --- class-wc-huayi-score.php | 2 -- includes/huayi-score-sdk.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/class-wc-huayi-score.php b/class-wc-huayi-score.php index 74508c4..d5cc717 100644 --- a/class-wc-huayi-score.php +++ b/class-wc-huayi-score.php @@ -137,8 +137,6 @@ class WC_Huayi_Score extends WC_Payment_Gateway { if ( $huayi_uid > 0 ) { $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 if ($balanceResult >= $order->order_total ) {//积分够扣 $payResult = $huayiScoreSdk->pay($huayi_uid,$order->order_total,'订单号:'.$order_id);//执行扣款 TODO diff --git a/includes/huayi-score-sdk.php b/includes/huayi-score-sdk.php index 2c1f48a..5a8101f 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.$this->apiurl.$this->token; + return $huayi_uid; } /**