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
4a5d0505
Commit
4a5d0505
authored
Nov 22, 2018
by
zhz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_dev' of git.shenbd.com:qm-develop/shenbd into master_dev
parents
19174394
3b0ce628
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
OrderService.php
application/models/Business/Order/OrderService.php
+9
-2
Store.php
application/models/DAO/Store.php
+10
-4
No files found.
application/models/Business/Order/OrderService.php
View file @
4a5d0505
...
...
@@ -292,10 +292,17 @@ class OrderServiceModel extends \Business\AbstractModel
$returnData
[
'diliverymanId'
]
=
ApiConst
::
zero
;
$returnData
[
'deliveryman'
]
=
new
\stdClass
();
}
$returnData
[
'offlinePayway'
]
=
$storeDao
->
convertOfflinePayway
(
$returnData
[
'offlinePayway'
]);
if
(
!
in_array
(
$this
->
order
[
'paymentType'
],
ArrayConst
::
payTypeOnlines
)){
$returnData
[
'offlinePayway'
]
=
$storeDao
->
convertOfflinePayway
(
$this
->
store
[
'offlinePayway'
]);
}
else
{
$returnData
[
'offlinePayway'
]
=
new
\stdClass
();
}
if
(
CURRENTVERSION
!=
NameConst
::
versionOne
){
$returnData
[
'offlinePayway'
]
=
''
;
}
$returnData
[
'storeMemberId'
]
=
$this
->
store
[
'memberId'
];
$returnData
[
'totalGoodsNum'
]
=
$orderGoodsDao
->
getGoodsCount
(
$this
->
orderGoodsList
);
$returnData
[
'offlinePayway'
]
=
$this
->
store
[
'offlinePayway'
]
?
$this
->
store
[
'offlinePayway'
]
:
''
;
//
$returnData['offlinePayway'] = $this->store['offlinePayway'] ? $this->store['offlinePayway'] : '';
$this
->
address
[
'address'
]
=
$orderCommonDao
->
convertReceiveAddress
(
$this
->
address
[
'address'
]);
$returnData
[
'reciverInfo'
]
=
$this
->
address
;
$returnData
[
'reciverInfo'
][
'mobPhone'
]
=!
empty
(
$returnData
[
'reciverInfo'
][
'mobPhone'
])
?
$returnData
[
'reciverInfo'
][
'mobPhone'
]
:
''
;
...
...
application/models/DAO/Store.php
View file @
4a5d0505
...
...
@@ -38,14 +38,20 @@ class StoreModel extends \DAO\AbstractModel
public
function
convertOfflinePayway
(
$offlinPayway
)
{
$res
=
new
\stdClass
();
// $res['images'] = Array();
// $res['payway'] = '';
if
(
!
empty
(
$offlinPayway
))
{
$offlinPayway
=
unserialize
(
$offlinPayway
);
$res
[
'images'
]
=
$offlinPayway
[
'images'
];
$res
[
'images'
]
=
[];
foreach
(
$offlinPayway
[
'images'
]
as
$image
){
$image
=
\Our\Common
::
getStaticFile
(
$image
,
\Our\ImageConst
::
storeLabel
);
array_push
(
$res
[
'images'
],
$image
);
}
$res
[
'payway'
]
=
$offlinPayway
[
'payway'
]
?
$offlinPayway
[
'payway'
]
:
''
;
}
if
(
empty
(
$res
)){
$res
=
new
\stdClass
();
}
return
$res
;
}
...
...
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