|
@@ -78,6 +78,7 @@ class API extends AbstractAPI
|
|
|
const API_MULTI_PROFIT_SHARING = '/secapi/pay/multiprofitsharing';
|
|
|
const API_PROFIT_SHARING_ADD_RECEIVER = '/secapi/pay/profitsharingaddreceiver';
|
|
|
const API_PROFIT_SHARING_FINISH = '/secapi/pay/profitsharingfinish';
|
|
|
+ const API_PROFIT_SHARING_QUERY = '/pay/profitsharingquery';
|
|
|
|
|
|
const API_URL_SHORTEN = 'https://api.mch.weixin.qq.com/tools/shorturl';
|
|
|
const API_AUTH_CODE_TO_OPENID = 'https://api.mch.weixin.qq.com/tools/authcodetoopenid';
|
|
@@ -627,4 +628,17 @@ class API extends AbstractAPI
|
|
|
];
|
|
|
return $this->safeRequest($this->wrapApi(self::API_PROFIT_SHARING_FINISH), $params, 'post', 'hash_hmac');
|
|
|
}
|
|
|
+
|
|
|
+ public function profitSharingQuery(
|
|
|
+ $orderNo,
|
|
|
+ $sharingNo,
|
|
|
+ $type = self::TRANSACTION_ID
|
|
|
+ )
|
|
|
+ {
|
|
|
+ $params = [
|
|
|
+ $type => $orderNo,
|
|
|
+ 'out_order_no' => $sharingNo,
|
|
|
+ ];
|
|
|
+ return $this->safeRequest($this->wrapApi(self::API_PROFIT_SHARING_QUERY), $params, 'post', 'hash_hmac');
|
|
|
+ }
|
|
|
}
|