parent
80da9de3dc
commit
94ab823632
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class HuayiScoreSdk
|
|||
*/
|
||||
public function getBalance($huayi_uid)
|
||||
{
|
||||
return $huayi_uid;
|
||||
return $huayi_uid.$this->apiurl.$this->token;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue