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
6e599901
Commit
6e599901
authored
Sep 27, 2019
by
陈国太
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加发券
parent
feb658ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
1 deletion
+29
-1
client_config_dev.php
src/client_config_dev.php
+1
-1
Coupon.php
src/shop/Coupon.php
+28
-0
No files found.
src/client_config_dev.php
View file @
6e599901
...
...
@@ -38,7 +38,7 @@ return [
'clientSecret'
=>
'6A23057D233DA902B5D603A758B0438E'
],
'shop'
=>
[
'apiUrl'
=>
'http://ap
papi.fecshoptest
.com/v1/internalapi'
,
'apiUrl'
=>
'http://ap
i-shop.yunya
.com/v1/internalapi'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
],
...
...
src/shop/Coupon.php
0 → 100644
View file @
6e599901
<?php
/**
* Coupon.php class file.
*
* @author Cathay <chenguotai@weixiuhui.cn>
* @time 2019/9/27 10:43 上午
* @copyright 2014-2019 weixiuhui. All Right Reserved
*/
namespace
internalApi\shop
;
use
internalApi\base\Client
;
class
Coupon
extends
Client
{
/**
* 购买服务星送券
*
* @param int $uid 用户中心uid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
sendByBuyVip
(
$uid
)
{
return
self
::
call
(
'coupon.sendByBuyVip'
,
compact
(
'uid'
));
}
}
\ 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