Commit 72a67546 authored by wwccw0591's avatar wwccw0591

pc

parent aa4fac7d
...@@ -52,6 +52,16 @@ class IndexController extends \Our\Controller_Abstract { ...@@ -52,6 +52,16 @@ class IndexController extends \Our\Controller_Abstract {
} }
public function indexAction() { public function indexAction() {
$browseDAO = \DAO\GoodsBrowseModel::getInstance();
$month = date('m');
$year = date('Y');
$sort = isset($param['sort']) ? (int)$param['sort'] : 1;
$sort == 1 ? $order = ['browsedate','ASC'] : $order = ['browsedate','DESC'];
$startTime = mktime(0,0,0,$month-2,1,$year);
$endTime = mktime(0,0,-1,$month+1,1,$year);
$res=$browseDAO->getDistinctDate(1,$startTime,$endTime);
echo json_encode($res);exit;
//$list = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsBrowserRedisModel::getInstance(),array(&$browseDAO, 'getDistinctDate'),array($memberId,$startTime,$endTime,$order),\Our\ApiConst::twoMinSecond,array($memberId));
// $clientPush=\JPush\ClientPush::getInstance(); // $clientPush=\JPush\ClientPush::getInstance();
// $clientPush->pushAll(); // $clientPush->pushAll();
$mongoDb= new \Mongo\MongoDbModel(); $mongoDb= new \Mongo\MongoDbModel();
......
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