提交 3fad069b authored 作者: 窦斌's avatar 窦斌

edit

上级 072aeb8a
......@@ -360,6 +360,9 @@ class CommonController extends BaseController
}else{
$pt[$k]['usermodeltype'] = 2;
}
if($request->get('session_token')['admin_groupnew'] == 7){
$pt[$k]['pt_name'] = $v['pt_name']."(".$v['company_id'].")";
}
}
return $this->success('操作成功', $pt);
}else{
......
......@@ -35,6 +35,22 @@ class DataStatisticsController extends BaseController
*/
public function index ( Request $request ){
$session = $request->get("session_token");
$data = DataStatisticsService::getSerStatistics($session);
$input = $request->all();
$checkKey = CommonService::checkKey(['method','time_start','search_type'],$input);
if($checkKey['code']!=1){
return $this->error('参数'.$checkKey['data'].'未填写,或值为空', ErrorInc::INVALID_PARAM, []);
}
if(!in_array($input['search_type'],['week','month'])){
return $this->error('查询类型错误',ErrorInc::INVALID_PARAM,$input);
}
$api=['getSerStatistics','getSerStatisticsDetail'];
if(!in_array($input['method'],$api)){
return $this->error('接口不参数异常',ErrorInc::INVALID_PARAM,$input);
}else {
$api = (string)$input['method'];
$data = DataStatisticsService::$api($session,$input);
return $this->success('操作成功
',$data);
}
}
}
......@@ -583,7 +583,7 @@ class AotuorderController extends BaseController
/***************半径推送******************************/
$get['company_id'] = $orderinfo['company_id'];//支付方式
if($ser_data['admin_groupnew']==3){
if($ser_data['admin_groupnew']==3 && !in_array($orderinfo['company_id'],[14])){
$get['ol_distype'] = 4;//系统派单类型
}else{
$get['ol_distype'] = 2;//系统派单类型
......
......@@ -989,7 +989,10 @@ Route::group(
Route::post('uploadExcelImport','PtPhistoryController@uploadExcelImport');//回传平台账单数据
});
//2024-10-17
Route::group(['prefix'=>'DataStatistics','middleware'=>'requestpc'],function(){
Route::post('index','DataStatisticsController@index');//列表
});
});
Route::group(
['namespace' => 'Financial'],function(){
......@@ -1143,7 +1146,7 @@ Route::group(
});
#平台服务 >> 京东自营订单
Route::group(['prefix'=>'SynJdSelfDataNew'], function (){
Route::get('addOrderData', 'SynJdSelfDataNewController@addOrderData');//添加京东
Route::get('addOrderData', 'SynJdSelfDataNewController@addOrderData');//添加京东
Route::get('decOrder', 'SynJdSelfDataNewController@decOrder');//定时解密
Route::get('getSelfRefund', 'SynJdSelfDataNewController@getSelfRefund');//定时解密
});
......@@ -1157,7 +1160,7 @@ Route::group(
});
#系统任务 >> 电话通知
Route::group(['prefix'=>'getCallByTtsCost'], function (){
Route::get('getCallByTtsCost', 'SysCallByTtsCostController@getCallByTtsCost');//电通知扣费
Route::get('getCallByTtsCost', 'SysCallByTtsCostController@getCallByTtsCost');//电通知扣费
});
#天猫服务单
/* Route::group(['prefix'=>'tmOrder'], function (){
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论