Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
64aa0ab7
Commit
64aa0ab7
authored
Jan 10, 2019
by
liwotian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mes
parent
ba060b25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
0 deletions
+65
-0
src/Recharge/Enum/BuyCardPayStatus.php
+22
-0
src/Recharge/Lib/RechargeInterface.php
+43
-0
No files found.
src/Recharge/Enum/BuyCardPayStatus.php
0 → 100644
View file @
64aa0ab7
<?php
/**
* Created by PhpStorm.
* User: mac
* Date: 2019-01-10
* Time: 09:58
*/
namespace
Hdll\Services\Recharge\Enum
;
class
BuyCardPayStatus
{
//订单状态
const
STATUS_NORMAL
=
10
;
//待支付
//paystatus
const
HAVE_PAY
=
2
;
const
PAY_EXCEPTION
=
3
;
const
PAY_REFUND
=
4
;
// 退款
}
\ No newline at end of file
src/Recharge/Lib/RechargeInterface.php
0 → 100644
View file @
64aa0ab7
<?php
/**
* This file is part of Swoft.
*
* @link https://swoft.org
* @document https://doc.swoft.org
* @contact group@swoft.org
* @license https://github.com/swoft-cloud/swoft/blob/master/LICENSE
*/
namespace
Hdll\Services\Recharge\Lib
;
use
Hdll\Services\Recharge\Enum\BuyCardPayStatus
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of demo service
*
* @method ResultInterface deferpayStatus(string $storeId,int $bargainbranchId,int $status,int $orderId)
*/
interface
RechargeInterface
{
/**
* 支付 状态 回馈接口
* @param string $storeId //
* @param int $itemId // 项目ID $localorderId
* @param int $status // BuyCardPayStatus::HAVE_PAY 成功支付 BuyCardPayStatus::PAY_EXCEPTION:未支付 (已经过期或者支付异常)
* @return mixed
*/
public
function
payStatus
(
string
$storeId
,
int
$itemId
,
int
$status
,
//
int
$orderId
);
}
\ 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