public function chargeSubUser($user, $description, $price) {
$query = array(
'command' => 'AddAccounting',
'subuser' => $user,
'description' => $description,
'type' => 'PAYMENT',
'payment' => $price->getValue(),
'currency' => $price->getCurrency()->getId(),
);
$res = $this->query($query);
if ($res['code'] != '200') throw new \Exception($res['description']);
return true;
}
欢迎光临 全球主机交流论坛 (https://52.ht/) | Powered by Discuz! X3.4 |