Commit 7916f72d authored by wwccw0591's avatar wwccw0591

goodsNums

parent 35ddbaf6
......@@ -96,13 +96,18 @@ class MessageHistoryModel extends \DAO\AbstractModel {
$message = unserialize($message);
$message['title'] = !empty($message['title']) ? $message['title'] : '';
if(!empty($message['buttons'])){
$timeDiff=TIMESTAMP-$message['createTime'];
foreach($message['buttons'] as &$button){
if($button['type']==ApiConst::messageButtonTypeConfirmButton || $button['type']==ApiConst::messageButtonTypeReciverButton){
$timeDiff=TIMESTAMP-$message['createTime'];
if($button['type']==ApiConst::messageButtonTypeReciverButton){
if($timeDiff>(ApiConst::tenMinSecond-ApiConst::oneMinute)){
$button['showType']=ApiConst::messageButtonShowTypeGray;
}
}
if($button['type']==ApiConst::messageButtonTypeConfirmButton ){
if($timeDiff>(ApiConst::tenMinSecond-ApiConst::oneDaySecond)){
$button['showType']=ApiConst::messageButtonShowTypeGray;
}
}
}
}
return $message;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment