本文整理匯總了PHP中D::querypvlog方法的典型用法代碼示例。如果您正苦於以下問題:PHP D::querypvlog方法的具體用法?PHP D::querypvlog怎麽用?PHP D::querypvlog使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類D
的用法示例。
在下文中一共展示了D::querypvlog方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: actionGroupInfo
/**
*
* 查詢車型子組圖片和配件列表信息
*/
public function actionGroupInfo()
{
//檢查參數
if (!isset($_POST['modelId']) || empty($_POST['modelId'])) {
Yii::app()->end();
}
if (!isset($_POST['groupId']) || empty($_POST['groupId'])) {
Yii::app()->end();
}
$userId = Yii::app()->user->id;
$modelId = Yii::app()->request->getParam('modelId');
$groupId = Yii::app()->request->getParam('groupId');
//用戶車型權限檢查,依據不同權限返回不同的數據
//$hasPerm = Yii::app()->user->checkPermission(array('vehicleEpcID'=>$vehicleEpcID));
$hasPerm = true;
//子組信息
$groupInfo = RPCClient::call('PartsService_queryGroupInfo', array('modelId' => $modelId, 'groupId' => $groupId, 'hasPerm' => $hasPerm));
//圖片URL加密
if ($groupInfo) {
$picture = trim($groupInfo['picture'], '/');
$imgserver = Yii::app()->params['imgserver'];
$imageencode = Yii::app()->params['imgencode'];
$originpic = CommonUtil::generateImgUrl($picture, $imgserver, 'parts');
$signurl = CommonUtil::encodeImgUrl($originpic, $imageencode);
$groupInfo['picture'] = $signurl;
}
//配件列表信息
$groupParts = RPCClient::call('PartsService_queryGroupParts', array('modelId' => $modelId, 'groupId' => $groupId, 'hasPerm' => $hasPerm));
try {
$url = Yii::app()->controller->getRoute();
//把ID轉換成對應的車型主組,子組
$params['parts'] = D::querypvlog($modelId, $groupId);
//插入mongo日誌
$oper = F::getoperation($url, $info == null, $params);
//epc查詢日誌
$loginfoArr = array('userId' => $userId, 'querytype' => 0, 'modelId' => $modelId, 'groupId' => $groupId);
RPCClient::call('LogService_logQueryEpc', $loginfoArr);
} catch (Exception $e) {
}
//返回頁麵
$this->renderPartial('vehicleparts', array('groupInfo' => $groupInfo, 'groupParts' => $groupParts, 'modelId' => $modelId, 'hasPerm' => $hasPerm));
}