Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
b0b5bb91
Commit
b0b5bb91
authored
Dec 10, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into lyz_version1
parents
6326f4bc
19f7d517
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
ApiConst.php
application/library/Our/ApiConst.php
+4
-3
SettingService.php
application/models/Business/Common/SettingService.php
+5
-3
Shopkeeper.php
application/modules/Client/controllers/Shopkeeper.php
+3
-0
User.php
application/modules/Client/controllers/User.php
+4
-2
No files found.
application/library/Our/ApiConst.php
View file @
b0b5bb91
...
@@ -423,10 +423,11 @@ class ApiConst
...
@@ -423,10 +423,11 @@ class ApiConst
const
set
=
2
;
const
set
=
2
;
//桌面最新版本
//桌面最新版本
const
xpClie
tn
AppVersion
=
'1.0.4'
;
const
xpClie
nt
AppVersion
=
'1.0.4'
;
const
winClientAppVersion
=
'1.0.4'
;
const
winClientAppVersion
=
'1.0.4'
;
const
xpClientAppVersionOnline
=
'1.0.0'
;
//微信小程序是否发布
const
winClientAppVersionOnline
=
'1.0.0'
;
//微信小是否发布
const
isWxPublish
=
0
;
const
isWxPublish
=
0
;
//消息模板类型
//消息模板类型
...
...
application/models/Business/Common/SettingService.php
View file @
b0b5bb91
...
@@ -26,21 +26,23 @@ class SettingServiceModel extends \Business\AbstractModel{
...
@@ -26,21 +26,23 @@ class SettingServiceModel extends \Business\AbstractModel{
public
function
getAppVersion
(
$data
){
public
function
getAppVersion
(
$data
){
$settingDAO
=
\DAO\SettingModel
::
getInstance
();
$settingDAO
=
\DAO\SettingModel
::
getInstance
();
$version
=
array
();
$version
=
array
();
$version
[
'app_version'
]
=
ApiConst
::
xpClietnAppVersion
;
if
(
$data
[
'opSystem'
]
==
NameConst
::
xp
){
if
(
$data
[
'opSystem'
]
==
NameConst
::
xp
){
$version
[
'app_version'
]
=
ApiConst
::
xpClietnAppVersion
;
if
(
APP_ENV
==
'pre'
){
if
(
APP_ENV
==
'pre'
){
$version
[
'app_version'
]
=
ApiConst
::
xpClientAppVersion
;
$fileName
=
'/'
.
NameConst
::
xpClientUpdateUrl
;
$fileName
=
'/'
.
NameConst
::
xpClientUpdateUrl
;
}
}
if
(
APP_ENV
==
'product'
||
APP_ENV
==
'productOne'
){
if
(
APP_ENV
==
'product'
||
APP_ENV
==
'productOne'
){
$version
[
'app_version'
]
=
ApiConst
::
xpClientAppVersionOnline
;
$fileName
=
'/'
.
NameConst
::
xpOnlineClientUpdateUrl
;
$fileName
=
'/'
.
NameConst
::
xpOnlineClientUpdateUrl
;
}
}
}
else
{
}
else
{
$version
[
'app_version'
]
=
ApiConst
::
winClientAppVersion
;
if
(
APP_ENV
==
'pre'
){
if
(
APP_ENV
==
'pre'
){
$version
[
'app_version'
]
=
ApiConst
::
winClientAppVersion
;
$fileName
=
'/'
.
NameConst
::
clientUpdateUrl
;
$fileName
=
'/'
.
NameConst
::
clientUpdateUrl
;
}
}
if
(
APP_ENV
==
'product'
||
APP_ENV
==
'productOne'
){
if
(
APP_ENV
==
'product'
||
APP_ENV
==
'productOne'
){
$version
[
'app_version'
]
=
ApiConst
::
winClientAppVersionOnline
;
$fileName
=
'/'
.
NameConst
::
onlineClientUpdateUrl
;
$fileName
=
'/'
.
NameConst
::
onlineClientUpdateUrl
;
}
}
...
...
application/modules/Client/controllers/Shopkeeper.php
View file @
b0b5bb91
...
@@ -156,6 +156,9 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
...
@@ -156,6 +156,9 @@ class ShopkeeperController extends \Our\Controller_AbstractClient {
public
function
getDeliveriersAction
(){
public
function
getDeliveriersAction
(){
$result
=
$this
->
shopkeeperService
->
getDiliveryManByStoreId
(
$this
->
memberId
);
$result
=
$this
->
shopkeeperService
->
getDiliveryManByStoreId
(
$this
->
memberId
);
if
(
$result
!==
false
){
if
(
$result
!==
false
){
if
(
!
$result
){
$result
=
[];
}
$this
->
success
(
$result
,
\Our\DescribeConst
::
successMessage
,
\Our\DescribeConst
::
successMessage
);
$this
->
success
(
$result
,
\Our\DescribeConst
::
successMessage
,
\Our\DescribeConst
::
successMessage
);
}
}
ErrorModel
::
throwException
(
CodeConfigModel
::
commonError
);
ErrorModel
::
throwException
(
CodeConfigModel
::
commonError
);
...
...
application/modules/Client/controllers/User.php
View file @
b0b5bb91
...
@@ -37,7 +37,7 @@ class UserController extends \Our\Controller_AbstractIndex {
...
@@ -37,7 +37,7 @@ class UserController extends \Our\Controller_AbstractIndex {
if
(
!
empty
(
$seller
)){
if
(
!
empty
(
$seller
)){
$mobile
=
$seller
[
'memberMobile'
]
;
$mobile
=
$seller
Name
;
$isStore
=
$this
->
memberService
->
getOneByStoreId
(
$seller
[
'storeId'
]);
$isStore
=
$this
->
memberService
->
getOneByStoreId
(
$seller
[
'storeId'
]);
if
(
empty
(
$isStore
)){
if
(
empty
(
$isStore
)){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
storeIsRefuse
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
storeIsRefuse
);
...
@@ -47,8 +47,10 @@ class UserController extends \Our\Controller_AbstractIndex {
...
@@ -47,8 +47,10 @@ class UserController extends \Our\Controller_AbstractIndex {
}
else
{
}
else
{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
errorUsernameOrPassword
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
errorUsernameOrPassword
);
}
}
if
(
$this
->
memberService
->
checkUserNamePassWord
(
$mobile
,
$password
)){
if
(
$this
->
memberService
->
checkUserNamePassWord
(
$sellerName
,
$password
)){
$member
=
$this
->
memberService
->
getOneByMobileAndPassword
(
$mobile
,
$password
);
$member
=
$this
->
memberService
->
getOneByMobileAndPassword
(
$mobile
,
$password
);
//$member= $this->memberService->getOneByMobileAndPassword($mobile,$password);
// //第二步保存扫码会员信息
// //第二步保存扫码会员信息
// $result = $this->memberService->saveStoreMembers($member['member_id']);
// $result = $this->memberService->saveStoreMembers($member['member_id']);
// if(!$result){
// if(!$result){
...
...
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