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
9ff2be0f
Commit
9ff2be0f
authored
Jul 30, 2018
by
王召彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加模板接口
parent
c0437d04
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
1 deletions
+46
-1
src/Common/Lib/Smscode.php
+2
-1
src/Store/Lib/TemplateInterface.php
+44
-0
No files found.
src/Common/Lib/Smscode.php
View file @
9ff2be0f
...
...
@@ -93,7 +93,7 @@ class Smscode
private
function
getKey
(
$mobile
)
{
return
'smscode
-
'
.
md5
(
$this
->
sellerId
.
'|'
.
$mobile
);
return
'smscode
:
'
.
md5
(
$this
->
sellerId
.
'|'
.
$mobile
);
}
}
\ No newline at end of file
src/Store/Lib/TemplateInterface.php
0 → 100644
View file @
9ff2be0f
<?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\Store\Lib
;
use
Swoft\Core\ResultInterface
;
/**
* The interface of store-template service
*
* @method ResultInterface deferIsCertified(int $storeId)
* @method ResultInterface deferGetStore(int $storeId)
* @method ResultInterface deferUpdateStore(int $storeId, array $data)
* @method ResultInterface deferDeleteStore(int $storeId)
*/
interface
TemplateInterface
{
/**
* 获取所有可用的个性模板列表
* onshelf=1表示查询已上架的模板
* onshelf=2表示查询已下架的模板
* @param int $onshelf
* @return array
*/
public
function
getTemplateList
(
int
$onshelf
=
1
);
/**
* 根据模板ID获取单个模板信息
*
* @param integer $tplId
* @return array
*/
public
function
getTemplate
(
int
$tplId
);
}
\ 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