Signed-off-by: hitsword <mail@huayizhiyun.com>
This commit is contained in:
hitsword
2019-05-20 13:22:01 +08:00
parent 24995dcba5
commit fdd92dbfff
3 changed files with 72 additions and 16 deletions
+41
View File
@@ -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;
}
}