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
8f4c6bb4
Commit
8f4c6bb4
authored
Sep 07, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into ccw
parents
d59823d8
0c50f8fa
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
5 deletions
+6
-5
Store.php
application/controllers/Store.php
+0
-2
DescribeConst.php
application/library/Our/DescribeConst.php
+1
-1
ImageConst.php
application/library/Our/ImageConst.php
+1
-0
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+1
-1
OrderService.php
application/models/Business/Order/OrderService.php
+1
-0
Store.php
application/models/DAO/Store.php
+2
-1
No files found.
application/controllers/Store.php
View file @
8f4c6bb4
...
@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
...
@@ -15,8 +15,6 @@ class StoreController extends \Our\Controller_AbstractIndex {
public
function
getStoreInfoAction
(){
public
function
getStoreInfoAction
(){
$address
=
\Business\User\AddressServiceModel
::
getInstance
()
->
getMyAddress
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
$address
=
\Business\User\AddressServiceModel
::
getInstance
()
->
getMyAddress
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
);
$storeInfo
=
$this
->
storeService
->
getStoreInfo
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
,
$address
);
$storeInfo
=
$this
->
storeService
->
getStoreInfo
(
$this
->
req
[
\Our\NameConst
::
data
],
$this
->
memberId
,
$address
);
//.
$storeInfo
[
'adv'
]
=
array
(
'href'
=>
''
,
'imageUrl'
=>
'http://qmoss-01.oss-cn-hangzhou.aliyuncs.com/data/upload/mall/adv/05715960161498410.jpg'
);
$storeInfo
[
'share'
]
=
\Business\Common\CommonServiceModel
::
getInstance
()
->
getShareInfo
(
\Our\ApiConst
::
shareStore
,
$this
->
req
[
\Our\NameConst
::
data
][
'storeId'
]);
$storeInfo
[
'share'
]
=
\Business\Common\CommonServiceModel
::
getInstance
()
->
getShareInfo
(
\Our\ApiConst
::
shareStore
,
$this
->
req
[
\Our\NameConst
::
data
][
'storeId'
]);
$this
->
success
(
$storeInfo
);
$this
->
success
(
$storeInfo
);
}
}
...
...
application/library/Our/DescribeConst.php
View file @
8f4c6bb4
...
@@ -140,7 +140,7 @@ class DescribeConst
...
@@ -140,7 +140,7 @@ class DescribeConst
const
payOnlineName
=
'线上支付'
;
//线上支付
const
payOnlineName
=
'线上支付'
;
//线上支付
const
payOfflineName
=
'线下支付'
;
//线下支付
const
payOfflineName
=
'线下支付'
;
//线下支付
const
payAogName
=
'
到店自提'
;
//到店自提
const
payAogName
=
'
货到付款'
;
//货到付款
const
refund
=
'退款'
;
const
refund
=
'退款'
;
const
refundRetund
=
'退货'
;
const
refundRetund
=
'退货'
;
...
...
application/library/Our/ImageConst.php
View file @
8f4c6bb4
...
@@ -48,6 +48,7 @@ class ImageConst{
...
@@ -48,6 +48,7 @@ class ImageConst{
const
defaultStoreLabelName
=
'default_store_avatar.jpg'
;
const
defaultStoreLabelName
=
'default_store_avatar.jpg'
;
const
defaultStoreBannerName
=
'default_store_banner.jpg'
;
//图片指向的域名
//图片指向的域名
const
imageDomain
=
"ossHost"
;
const
imageDomain
=
"ossHost"
;
...
...
application/models/Business/Goods/GroupSaleService.php
View file @
8f4c6bb4
...
@@ -255,7 +255,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -255,7 +255,7 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
public
function
getStorePBundlingList
(
$storeId
,
$dbName
=
\Our\DbNameConst
::
salveDBConnectName
,
$withKeyFlag
=
false
,
$limit
=
''
){
public
function
getStorePBundlingList
(
$storeId
,
$dbName
=
\Our\DbNameConst
::
salveDBConnectName
,
$withKeyFlag
=
false
,
$limit
=
''
){
$pbundlingInstance
=
\DAO\PBundlingModel
::
getInstance
(
$dbName
);
$pbundlingInstance
=
\DAO\PBundlingModel
::
getInstance
(
$dbName
);
$limit
==
''
?
$limit
=
array
(
\Our\ApiConst
::
zero
,
\Our\ApiConst
::
five
)
:
$limit
=
$limit
;
$limit
==
''
?
$limit
=
array
(
\Our\ApiConst
::
zero
,
\Our\ApiConst
::
five
)
:
$limit
=
$limit
;
$groupList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$pbundlingInstance
,
'getList'
),
array
(
$this
->
pBundingField
,
array
(
'store_id'
=>
$storeId
),
$limit
),
\Our\ApiConst
::
oneDaySecond
);
$groupList
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db4\PBundlingRedisModel
::
getInstance
(),
array
(
&
$pbundlingInstance
,
'getList'
),
array
(
$this
->
pBundingField
,
array
(
'store_id'
=>
$storeId
),
$limit
),
\Our\ApiConst
::
oneDaySecond
,
array
(
$storeId
)
);
$newGroupList
=
$this
->
getPBundlingList
(
$groupList
,
$dbName
,
$withKeyFlag
);
$newGroupList
=
$this
->
getPBundlingList
(
$groupList
,
$dbName
,
$withKeyFlag
);
return
$newGroupList
;
return
$newGroupList
;
}
}
...
...
application/models/Business/Order/OrderService.php
View file @
8f4c6bb4
...
@@ -886,6 +886,7 @@ class OrderServiceModel extends \Business\AbstractModel
...
@@ -886,6 +886,7 @@ class OrderServiceModel extends \Business\AbstractModel
$orderContent
[
'payway'
]
=
\Our\DescribeConst
::
afterPay
;
$orderContent
[
'payway'
]
=
\Our\DescribeConst
::
afterPay
;
}
}
$orderContent
[
'orderAmount'
]
=
$order
[
'order_amount'
];
$orderContent
[
'orderAmount'
]
=
$order
[
'order_amount'
];
$orderContents
[]
=
$orderContent
;
}
}
$orderIds
[]
=
$order
[
'order_id'
];
$orderIds
[]
=
$order
[
'order_id'
];
}
}
...
...
application/models/DAO/Store.php
View file @
8f4c6bb4
...
@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel
...
@@ -105,8 +105,9 @@ class StoreModel extends \DAO\AbstractModel
if
(
$img
)
{
if
(
$img
)
{
$storeLabel
=
\Our\Common
::
getStaticFile
(
$img
,
\Our\ImageConst
::
storeLabel
,
'ossHost'
);
$storeLabel
=
\Our\Common
::
getStaticFile
(
$img
,
\Our\ImageConst
::
storeLabel
,
'ossHost'
);
}
else
{
}
else
{
$storeLabel
=
\Our\Common
::
getStaticFile
(
ImageConst
::
defaultStore
Label
Name
,
ImageConst
::
defaultPath
);
$storeLabel
=
\Our\Common
::
getStaticFile
(
ImageConst
::
defaultStore
Banner
Name
,
ImageConst
::
defaultPath
);
}
}
$storeLabel
.=
"?x-oss-process=image/resize,m_fill,h_314,w_750"
;
return
$storeLabel
;
return
$storeLabel
;
}
}
/**
/**
...
...
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