-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathactivity.php
More file actions
39 lines (32 loc) · 1 KB
/
activity.php
File metadata and controls
39 lines (32 loc) · 1 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
<?php
/**
* Created by PhpStorm.
* User: wangweilin
* Date: 2015/12/16
* Time: 19:35
*/
require_once 'public/public.php';
require_once 'lib/Verify.php';
require_once 'lib/Type.php';
require_once 'tasks/Activity/ActivityTask.class.php';
$meid = Verify::check($_GET, 'meid');
$cyid = Verify::check($_GET, 'cyid');
$width = Verify::check($_GET, 'width');
$height = Verify::check($_GET, 'height');
$verCode = Verify::check($_GET, 'versionCode', Type::INT);
$language = Verify::check($_GET, 'language');
$entry = Verify::check($_GET, 'entry', Type::INT);
$id = empty($cyid) ? $meid : $cyid;
$task = new ActivityTask();
$arrResult = $task->getUserActivity($id, $verCode);
$logArr = $_REQUEST;
if (isset($_POST['statis'])) {
unset($logArr['statis']);
$statis = json_decode($_POST['statis'], 1);
if ($statis) {
$logArr = array_merge($statis, $logArr);
}
}
$logArr['success'] = Verify::check($arrResult, 'result', Type::BOOLEAN);
Log::appendJson($logArr, 'activity', '_time');
out_json($arrResult);