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; } /**