Compare commits

..

No commits in common. "aede81dce3233d378c57f30e06cfb3fd844eb214" and "d27b1a451e309fbad9c7acd9621db4885f5527da" have entirely different histories.

View File

@ -23,7 +23,7 @@ use WePayV3\Contracts\BasicWePay;
* Class Profitsharing
* @package WePayV3
*/
class ProfitSharing extends BasicWePay
class Profitsharing extends BasicWePay
{
@ -35,8 +35,7 @@ class ProfitSharing extends BasicWePay
*/
public function create($options)
{
$options['appid'] = $this->config['appid'];
return $this->doRequest('POST', '/v3/profitsharing/orders', json_encode($options, JSON_UNESCAPED_UNICODE), true);
return $this->doRequest('POST', '/v3/profitsharing/orders', $options, true);
}
@ -61,7 +60,7 @@ class ProfitSharing extends BasicWePay
*/
public function unfreeze($options)
{
return $this->doRequest('POST', '/v3/profitsharing/orders/unfreeze', json_encode($options, JSON_UNESCAPED_UNICODE), true);
return $this->doRequest('POST', '/v3/profitsharing/orders/unfreeze', $options, true);
}
/**
* 查询剩余待分金额
@ -82,8 +81,7 @@ class ProfitSharing extends BasicWePay
*/
public function addReceiver($options)
{
$options['appid'] = $this->config['appid'];
return $this->doRequest('POST', "/v3/profitsharing/receivers/add", json_encode($options, JSON_UNESCAPED_UNICODE), true);
return $this->doRequest('POST', "/v3/profitsharing/receivers/add", $options, true);
}
/**
* 删除分账接收方
@ -93,7 +91,6 @@ class ProfitSharing extends BasicWePay
*/
public function deleteReceiver($options)
{
$options['appid'] = $this->config['appid'];
return $this->doRequest('POST', "/v3/profitsharing/receivers/delete", json_encode($options, JSON_UNESCAPED_UNICODE), true);
return $this->doRequest('POST', "/v3/profitsharing/receivers/delete", $options, true);
}
}