Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
70cc485a
Commit
70cc485a
authored
May 08, 2018
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加企业付款接口
parent
2bbe42a0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
0 deletions
+60
-0
ucenter_transfer.php
example/ucenter_transfer.php
+21
-0
Transfer.php
src/ucenter/Transfer.php
+39
-0
No files found.
example/ucenter_transfer.php
0 → 100644
View file @
70cc485a
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2018/1/8
* Time: 18:52
*/
use
internalApi\ucenter\Transfer
;
require
__DIR__
.
'/_init.php'
;
Transfer
::
setDebug
();
try
{
$result
=
Transfer
::
create
(
'12'
,
'kw'
,
'wx_lite'
,
10
,
'123123123123123'
,
'http://u.yunya.com/test/tcallback'
);
}
catch
(
\internalApi\base\ApiException
$e
){
echo
123123
;
}
print_r
(
$result
);
\ No newline at end of file
src/ucenter/Transfer.php
0 → 100644
View file @
70cc485a
`
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2018/5/8
* Time: 10:53 AM
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Transfer
extends
Client
{
/**
* 企业付款
* @param int $uid
* @param string $type 付款业务类型
* @param string $channel 付款渠道
* @param float $amount 付款金额,元为单位,支付小数点两位,最大 9999.99
* @param string $recipient 收款账号 支付宝账号或者使用微信企业付款到零钱时为用户在 wx 、 wx_pub 及 wx_lite 渠道下的 open_id
* @param string $callbackUrl 成功回调地址
* @param string $body 额外信息
* @param string $recipientName 收款姓名 微信相关渠道可以不传,传则进行校验
* @param string $description 描述 99 个英文和数字的组合或最多 33 个中文字符,不可以包含特殊字符;
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
create
(
$uid
,
$type
,
$channel
,
$amount
,
$recipient
,
$callbackUrl
,
$body
=
''
,
$recipientName
=
''
,
$description
=
''
)
{
return
self
::
call
(
'transfer.create'
,
compact
(
'uid'
,
'type'
,
'channel'
,
'amount'
,
'recipient'
,
'callbackUrl'
,
'body'
,
'recipientName'
,
'description'
));
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment