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
1794a4e7
Commit
1794a4e7
authored
Sep 27, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
b53b2ace
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
3 deletions
+27
-3
Message.php
application/controllers/Message.php
+1
-0
ArrayConst.php
application/library/Our/ArrayConst.php
+8
-0
DescribeConst.php
application/library/Our/DescribeConst.php
+2
-1
Push.php
application/library/Our/Push.php
+16
-2
No files found.
application/controllers/Message.php
View file @
1794a4e7
...
@@ -148,6 +148,7 @@ class MessageController extends \Our\Controller_AbstractApi {
...
@@ -148,6 +148,7 @@ class MessageController extends \Our\Controller_AbstractApi {
}
}
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
setMessageFail
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
setMessageFail
);
}
}
public
function
getSetAction
(){
public
function
getSetAction
(){
$memberCenterService
=
\Business\User\MemberCenterServiceModel
::
getInstance
();
$memberCenterService
=
\Business\User\MemberCenterServiceModel
::
getInstance
();
$messageSet
=
$memberCenterService
->
getMessageSet
(
$this
->
memberId
);
$messageSet
=
$memberCenterService
->
getMessageSet
(
$this
->
memberId
);
...
...
application/library/Our/ArrayConst.php
View file @
1794a4e7
...
@@ -37,6 +37,14 @@ class ArrayConst
...
@@ -37,6 +37,14 @@ class ArrayConst
ApiConst
::
qqPayType
,
ApiConst
::
qqPayType
,
ApiConst
::
wxLitePayType
ApiConst
::
wxLitePayType
);
);
const
paymentTypes
=
array
(
ApiConst
::
offlinePay
=>
'线下付款'
,
ApiConst
::
wxpay
=>
'微信付款'
,
ApiConst
::
afterSendPay
=>
'货到付款'
,
ApiConst
::
alipay
=>
'支付宝付款'
,
ApiConst
::
tenpay
=>
'qq支付'
,
ApiConst
::
wxProgram
=>
'微信付款'
,
);
const
orderPayTypeOnlines
=
array
(
const
orderPayTypeOnlines
=
array
(
ApiConst
::
wxpay
,
ApiConst
::
wxpay
,
ApiConst
::
alipay
,
ApiConst
::
alipay
,
...
...
application/library/Our/DescribeConst.php
View file @
1794a4e7
...
@@ -143,7 +143,8 @@ class DescribeConst
...
@@ -143,7 +143,8 @@ class DescribeConst
const
payOnlineName
=
'线上支付'
;
//线上支付
const
payOnlineName
=
'线上支付'
;
//线上支付
const
payOfflineName
=
'线下支付'
;
//线下支付
const
payOfflineName
=
'线下支付'
;
//线下支付
const
payAogName
=
'货到付款'
;
//货到付款
const
payAogName
=
'货到付款'
;
//货到付款
const
payed
=
'已付款'
;
//货到付款
const
notPayed
=
'未付款'
;
//货到付款
const
refund
=
'退款'
;
const
refund
=
'退款'
;
const
refundRetund
=
'退货'
;
const
refundRetund
=
'退货'
;
...
...
application/library/Our/Push.php
View file @
1794a4e7
...
@@ -190,6 +190,20 @@ class Push
...
@@ -190,6 +190,20 @@ class Push
array_push
(
$buttons
,
$button
);
array_push
(
$buttons
,
$button
);
return
$buttons
;
return
$buttons
;
}
public
function
getOrderMessageContent
(
$orderDetail
){
$messageContent
=
'商品名称:'
;
foreach
(
$orderDetail
[
'orderGoods'
]
as
$orderGood
){
$messageContent
.=
$orderGood
[
'goodsName'
]
.
'×'
.
$orderGood
[
'goodsNum'
]
.
"
\n
"
;
}
$messageContent
.=
'支付方式:'
.
ArrayConst
::
paymentTypes
[
$orderDetail
[
'paymentType'
]]
.
"
\n
"
;
$messageContent
.=
'付款状态:'
.
ArrayConst
::
paymentTypes
[
$orderDetail
[
'paymentTime'
]]
>
ApiConst
::
zero
?
DescribeConst
::
payed
:
DescribeConst
::
notPayed
.
"
\n
"
;
$messageContent
.=
'收货地址:'
.
$orderDetail
[
'reciverInfo'
][
'address'
]
.
"
\n
"
;
$messageContent
.=
'收货人:'
.
$orderDetail
[
'reciverInfo'
][
'trueName'
]
.
"
\n
"
;
$messageContent
.=
'收货人电话:'
.
$orderDetail
[
'reciverInfo'
][
'telPhone'
]
.
"
\n
"
;
return
$messageContent
;
}
}
//店铺接单
//店铺接单
public
function
recieveWait
(
$storeId
,
$orderId
,
$orderSn
)
public
function
recieveWait
(
$storeId
,
$orderId
,
$orderSn
)
...
@@ -199,9 +213,9 @@ class Push
...
@@ -199,9 +213,9 @@ class Push
$store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$storeDao
,
'getInfo'
),
array
(
$condition
),
ApiConst
::
oneDaySecond
,
array
(
$storeId
));
$store
=
\Our\RedisHelper
::
cachedFunction
(
\Redis\Db6\StoreRedisModel
::
getInstance
(),
array
(
&
$storeDao
,
'getInfo'
),
array
(
$condition
),
ApiConst
::
oneDaySecond
,
array
(
$storeId
));
//$store = $storeDao->getInfo(array('store_id'=>$storeId));
//$store = $storeDao->getInfo(array('store_id'=>$storeId));
$orderService
=
\Business\Order\OrderServiceModel
::
getInstance
();
$orderService
=
\Business\Order\OrderServiceModel
::
getInstance
();
$order
=
$orderService
->
getOrderDetail
(
$orderId
);
$order
Detail
=
$orderService
->
getOrderDetail
(
$orderId
);
$toUserId
=
$storeId
;
$toUserId
=
$storeId
;
$messageContent
=
Common
::
format
(
DescribeConst
::
recieveWaitContent
,
$orderSn
);
$messageContent
=
$this
->
getOrderMessageContent
(
$orderDetail
);
$fromAvatar
=
Common
::
getStaticFile
(
ImageConst
::
orderAvatarName
,
ImageConst
::
systemAvatar
);
$fromAvatar
=
Common
::
getStaticFile
(
ImageConst
::
orderAvatarName
,
ImageConst
::
systemAvatar
);
$href
=
Common
::
format
(
PathConst
::
orderId
,
$orderId
);
$href
=
Common
::
format
(
PathConst
::
orderId
,
$orderId
);
$buttons
=
$this
->
getComfirmRecieveButtons
(
$orderId
);
$buttons
=
$this
->
getComfirmRecieveButtons
(
$orderId
);
...
...
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