本文整理汇总了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));
}