test.php 1.73 KB
<?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\">&lt;yoho id=citation param={\"messageID\":\"6790187\",\"waveID\":\"123711\",\"messageSender\":\"909090\"} &gt;...&lt;/yoho&gt;</span>\r\n<p>sfsfaf<br /></p></span>"
    );
/*$request = array(
    'contentID'=>69,
    'messageID'=>6790139
    );    */
$contact = new YSMWMessageAction();
echo $contact->init($request);
?>