123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\shop\controller;
-
-
- use app\common\basics\ShopBase;
- use app\common\server\JsonServer;
- use app\shop\logic\StatisticsLogic;
-
-
-
- class Statistics extends ShopBase
- {
-
-
- public function trading()
- {
- if($this->request->isAjax()){
- $post = $this->request->post();
- $res = StatisticsLogic::trading($post,$this->shop_id);
- return JsonServer::success('',$res);
- }
- return view();
- }
-
-
-
- public function visit()
- {
- if($this->request->isAjax()){
- $post = $this->request->post();
- $res = StatisticsLogic::visit($post,$this->shop_id);
- return JsonServer::success('',$res);
- }
- return view();
- }
-
-
-
- public function goods()
- {
- if($this->request->isAjax()){
- $get= $this->request->get();
- $res = StatisticsLogic::goods($get,$this->shop_id);
- return JsonServer::success('',$res);
- }
- return view();
- }
-
- }
|