-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmstatis.php
More file actions
81 lines (75 loc) · 2.04 KB
/
mstatis.php
File metadata and controls
81 lines (75 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* 统计接口 versionCode >= 39
* 旧static、wpdlStatic接口全部作废
*
* 预览、下载、应用主动上报接口
* 统一各个模块的上报信息
* service/mstatis.php?id=xxx&cpid=xxx&moduletype=1&type=1&optype=1&applytype=0
*
* 说明:
* 方法:POST
*
*id:资源唯一ID
*
*cpid:资源ID(同分辨率的相同资源)
*
* moduletype: 应用类型标识
* 0 : 主题
* 1 : 主题预览图(不用)
* 2:酷派壁纸 //不用
* 3:安卓壁纸
* 4:铃声
* 5:字体
* 6:精灵解锁场景
* 7:酷派秀widge
*
* type:模块下的分类
* 如壁纸的:美女、动物、植物、视觉等
*
* optype:操作类型
* 0:请求 //一般不用,当全部通过第三方的服务器时,做自己的统计用
* 1:预览
* 2:下载
* 3:应用
*
* applytype:操作子类型,当操作类型为应用(3)时作为应用的类型
* 1: 壁纸->待机
* 2: 壁纸->桌面
* 3: 壁纸->主菜单
*
* POST字段 :为手机基本信息
* product:产品名称
* cyid: 酷云账号(暂无)
* imsi: 终端串号
* meid 终端串号
* versionCode:应用版本
* width: 分辨率宽
* height: 分辨率高
* network: 网络模式2g/3g/wifi
*/
require_once 'lib/WriteLog.lib.php';
require_once 'public/public.php';
require_once 'tasks/Records/RecordTask.class.php';
require_once 'tasks/statis/StatisInterface.class.php';
if (!isset($_GET['id'])) {
Log::write('statis:: id is not set', 'log');
exit(get_rsp_result(false, 'id is empty'));
}
//MYSQL记录
//$statis = new StatisInterface();
//$result = $statis->saveStatis();
//mongodb记录
$rt = new RecordTask();
$result = $rt->saveStaticRecord();
//$logArr = $_REQUEST;
//if (isset($_POST['statis'])) {
// unset($logArr['statis']);
// $statis = json_decode($_POST['statis'], 1);
//
// if ($statis) {
// $logArr = array_merge($statis, $logArr);
// }
//}
//Log::appendJson($logArr, 'statis', '_time');
echo get_rsp_result(true);