38 lines
1.1 KiB
PHP
Executable File
38 lines
1.1 KiB
PHP
Executable File
<?php
|
|
global $START_TIME;
|
|
$START_TIME = getMillisecond();
|
|
//加载变量设置
|
|
global $_FM;
|
|
|
|
//记录请求日志-20170629
|
|
$dologs = new common\components\DoLogs;
|
|
$dologs ->record();
|
|
|
|
//授权服务器通讯检查,排除前台登陆演示我的接口时的判断
|
|
$errorCode=0;
|
|
|
|
//未登陆不返回数据!
|
|
// if(!isset($_FM['user']['name']))
|
|
// {
|
|
// $errorCode = 45300201;
|
|
// die (json_encode(array('errorcode'=>$errorCode,'msg'=>Yii::t('errorcode',$errorCode))));
|
|
// }elseif (Yii::$app->user->isGuest)
|
|
// {
|
|
// $errorCode = 45300201;
|
|
// die (json_encode(array('errorcode'=>$errorCode,'msg'=>Yii::t('errorcode',$errorCode))));
|
|
// }
|
|
|
|
//补充添加平台号关联
|
|
$_FM['platid'] = isset($_GET['platid']) ? intval($_GET['platid']) : 0;
|
|
if(isset($_FM['apiCert']['platid'])){
|
|
$_FM['platid'] = $_FM['apiCert']['platid'];
|
|
}
|
|
$_FM['uniacid'] = isset($_GET['uniacid']) ? intval($_GET['uniacid']) : 0;
|
|
if(isset($_FM['apiCert']['uniacid'])){
|
|
$_FM['uniacid'] = $_FM['apiCert']['uniacid'];
|
|
}
|
|
$_FM['shopid'] = isset($_GET['shopid']) ? intval($_GET['shopid']) : 0;
|
|
if(isset($_FM['apiCert']['shopid'])){
|
|
$_FM['shopid'] = $_FM['apiCert']['shopid'];
|
|
}
|