|
发表于 2011-2-16 10:53:35
|
显示全部楼层
原帖由 jacky1103 于 2011-2-16 10:49 发表 
充值走淘宝,让淘宝中介,哪个代理敢?汇率走中国银行充值当天汇率。
我朋友自己写了个API,自助充值。你太落后了。
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;
} |
|