示例#1
0
文件: rsc.php 项目: vvcumt/zk
$nWidth = isset($_GET['width']) ? $_GET['width'] : 0;
$nHeight = isset($_GET['height']) ? $_GET['height'] : 0;
$nSceneCode = isset($_GET['scenecode']) ? $_GET['scenecode'] : 0;
$nKernelCode = isset($_GET['kernelcode']) ? $_GET['kernelcode'] : 0;
$nIsOrder = isset($_GET['isorder']) ? $_GET['isorder'] : 0;
//是否命令
$nIsShow = isset($_GET['isshow']) ? $_GET['isshow'] : 0;
//是否命令
$nDisplayType = isset($_GET['displaytype']) ? $_GET['displaytype'] : 0;
//是否分离托盘和图标打点0全部1托盘2图标
$nIsLarge = isset($_GET['islarge']) ? $_GET['islarge'] : 0;
//是否图片
$nIsGoing = isset($_GET['isgoing']) ? $_GET['isgoing'] : 0;
//是否锁定
$strTitle = isset($_GET['title']) ? $_GET['title'] : 0;
//推送标题
$strContent = isset($_GET['content']) ? $_GET['content'] : 0;
//推送内容描述
$strUrl = isset($_GET['url']) ? $_GET['url'] : 0;
//推送内容描述
$nIsDetail = isset($_GET['url']) ? $_GET['url'] : 0;
//是否详情
require_once 'configs/config.php';
require_once "tasks/CoolShow/CoolShowSearch.class.php";
$result = array('coolshow' => 'order');
if (!$nIsOrder) {
    $coolshow = new CoolShowSearch();
    $result = $coolshow->getRsc($nCoolType, $strId);
}
$arrResult = array('isdirect' => true, 'entity' => array('pushtype' => (int) $nCoolType, 'isalbum' => $isAlbum, 'isdetail' => $nIsDetail ? true : false, 'isorder' => $nIsOrder ? true : false, 'pushDisplayType' => $nDisplayType, 'isshow' => $nIsShow, 'title' => $strTitle, 'content' => $strContent, 'isgoing' => $nIsGoing ? true : false, 'islarge' => $nIsLarge ? true : false, 'url' => $strUrl, 'detailurl' => $strDetailUrl, 'id' => $strId, $result['key'] => $result['result']));
echo json_encode($arrResult);
示例#2
0
文件: exorder.php 项目: vvcumt/zk
$strExorder = $exorderDb->createExorder($nCoolType);
if (!$strExorder) {
    echo get_rsp_result(false, 'create exorder failed');
    exit;
}
$reuslt = array('result' => true, 'exorder' => $strExorder, 'charged' => false);
echo json_encode($reuslt);
$bQuery = isset($_GET['query']) ? $_GET['query'] : 0;
#0表示拉取订单号和收费信息,1表示查询收费信息
if ($bQuery) {
    exit;
}
require_once 'tasks/CoolShow/CoolShowSearch.class.php';
require_once 'tasks/Records/RecordTask.class.php';
$coolshow = new CoolShowSearch();
$arrRsc = $coolshow->getRsc($nCoolType, $strId);
$arrRsc = $arrRsc['result'];
$cpid = '';
$name = '';
$userid = '';
$author = '';
$type = '';
$appid = '';
$waresid = '';
$money = '';
foreach ($arrRsc as $rsc) {
    if ($nCoolType == COOLXIU_TYPE_SCENE) {
        $cpid = $rsc->sceneId;
        $name = $rsc->sceneZName;
        $author = $rsc->authorName;
    } else {