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
473a9500
Commit
473a9500
authored
Oct 21, 2018
by
feixiang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
4d2b4475
3d5f6bcb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
14 deletions
+9
-14
src/Common/Lib/Smscode.php
+9
-4
src/Reservation/Lib/ReservationInterface.php
+0
-10
No files found.
src/Common/Lib/Smscode.php
View file @
473a9500
...
@@ -21,11 +21,15 @@ use Hdll\Services\Common\Entity\User;
...
@@ -21,11 +21,15 @@ use Hdll\Services\Common\Entity\User;
class
Smscode
class
Smscode
{
{
protected
$
sellerId
;
protected
$
number
;
public
function
__construct
()
public
function
__construct
(
$number
=
null
)
{
{
$this
->
sellerId
=
App
::
getBean
(
User
::
class
)
->
getId
();
if
(
$number
!==
null
)
{
$this
->
number
=
$number
;
}
else
{
$this
->
number
=
App
::
getBean
(
User
::
class
)
->
getId
();
}
}
}
/**
/**
...
@@ -93,7 +97,7 @@ class Smscode
...
@@ -93,7 +97,7 @@ class Smscode
private
function
getKey
(
$mobile
)
private
function
getKey
(
$mobile
)
{
{
return
'smscode:'
.
md5
(
$this
->
sellerId
.
'|'
.
$mobile
);
return
'smscode:'
.
md5
(
$this
->
number
.
'|'
.
$mobile
);
}
}
}
}
\ No newline at end of file
src/Reservation/Lib/ReservationInterface.php
View file @
473a9500
...
@@ -22,7 +22,6 @@ use Swoft\Core\ResultInterface;
...
@@ -22,7 +22,6 @@ use Swoft\Core\ResultInterface;
* @method ResultInterface deferModifyReservById(int $storeId, int $id, array $data)
* @method ResultInterface deferModifyReservById(int $storeId, int $id, array $data)
* @method ResultInterface defermarkReservFinished(int $storeId, int $orderId)
* @method ResultInterface defermarkReservFinished(int $storeId, int $orderId)
* @method ResultInterface deferAddReservation(int $storeId, int $orderId, int $buyerId, int $cmanId, int $reservTime, string $memo, int $type)
* @method ResultInterface deferAddReservation(int $storeId, int $orderId, int $buyerId, int $cmanId, int $reservTime, string $memo, int $type)
* @method ResultInterface deferCancelReservById(int $storeId, int $id)
* @method ResultInterface deferCancelReservByOrderId(int $storeId, int $orderId, string $memo)
* @method ResultInterface deferCancelReservByOrderId(int $storeId, int $orderId, string $memo)
*/
*/
interface
ReservationInterface
interface
ReservationInterface
...
@@ -97,15 +96,6 @@ interface ReservationInterface
...
@@ -97,15 +96,6 @@ interface ReservationInterface
public
function
addReservation
(
int
$storeId
,
int
$orderId
,
int
$buyerId
,
int
$cmanId
,
int
$reservTime
,
string
$memo
,
int
$type
);
public
function
addReservation
(
int
$storeId
,
int
$orderId
,
int
$buyerId
,
int
$cmanId
,
int
$reservTime
,
string
$memo
,
int
$type
);
/**
/**
* 取消某个预约
*
* @param integer $storeId
* @param integer $id
* @return boolean 返回取消结果
*/
public
function
cancelReservById
(
int
$storeId
,
int
$id
);
/**
* 根据订单id取消该订单下的所有预约
* 根据订单id取消该订单下的所有预约
*
*
* @param integer $storeId
* @param integer $storeId
...
...
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