@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
|
||||
class HuayiScoreSdk
|
||||
{
|
||||
protected $apiurl = null;
|
||||
protected $token = null;
|
||||
public function __construct($option)
|
||||
{
|
||||
$this->apiurl = isset($option['apiurl']) ? $option['apiurl'] : '';
|
||||
$this->token = isset($option['token']) ? $option['token'] : '';
|
||||
}
|
||||
/**
|
||||
* 获取积分余额
|
||||
*/
|
||||
public function getBalance($huayi_uid)
|
||||
{
|
||||
return $huayi_uid;
|
||||
}
|
||||
|
||||
/**
|
||||
* 支出积分
|
||||
* @return string
|
||||
*/
|
||||
public function pay($huayi_uid,$amount,$note)
|
||||
{
|
||||
return $huayi_uid.$amount.$note;
|
||||
}
|
||||
|
||||
/**
|
||||
* 退还积分
|
||||
* @return string
|
||||
*/
|
||||
public function refund($huayi_uid,$amount,$note)
|
||||
{
|
||||
return $huayi_uid.$amount.$note;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user