test.php
1.73 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
<?php
// 启动目录
define('BOOT_DIR_PATH', dirname(__FILE__).'/../../../..');
// 总的根路径
define('ROOT_DIR_PATH', dirname(__FILE__).'/../..');
define('REQUEST_ROUTER', 'r');
define('REQUEST_PARAM_NAME', 'CALL');
require_once BOOT_DIR_PATH.'/util/JSON/JSON.class.php';
require_once BOOT_DIR_PATH.'/util/db/DbMysqli.class.php';
require_once ROOT_DIR_PATH.'/BASE/config/YSMCMain.const.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWLoginAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWValidateRandomKeyAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWMessageAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWAppAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWContactAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWRegisterAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWHeadListAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/YSMWLogoutAction.class.php';
require_once ROOT_DIR_PATH.'/BASE/web/common/YSMWCOGetCallParam.func.php';
$router = explode('/',$_POST[REQUEST_ROUTER]);
// 返回的结果
$result = '';
$request = array(
'waveID'=>'123738',//'123711',//123738,
'totalContact'=>10,
'totalMessages'=>10,
'country'=>0,
'province'=>1,
'city'=>1,
'age'=>'16-22',
'sex'=>1,
'startPos'=>0,
'length'=>10,
'funcID'=>1,
'classID'=>1,
'info'=>"<span class=\"hibox_msg\"><span class=\"apply_sender_panel\"><yoho id=citation param={\"messageID\":\"6790187\",\"waveID\":\"123711\",\"messageSender\":\"909090\"} >...</yoho></span>\r\n<p>sfsfaf<br /></p></span>"
);
/*$request = array(
'contentID'=>69,
'messageID'=>6790139
); */
$contact = new YSMWMessageAction();
echo $contact->init($request);
?>