|
|
|
|
@ -2,6 +2,7 @@
|
|
|
|
|
namespace App\Services;
|
|
|
|
|
|
|
|
|
|
use App\Http\Controllers\API\AspNetZhuanController;
|
|
|
|
|
use App\Http\Controllers\API\PEISApiController;
|
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
|
|
class OrderService
|
|
|
|
|
@ -12,6 +13,15 @@ class OrderService
|
|
|
|
|
{
|
|
|
|
|
$order=DB::table('orders')->where('id',$id)->first();
|
|
|
|
|
if(!$order) return ['status'=>false,'msg'=>'订单不存在'];
|
|
|
|
|
$wait_day=false;
|
|
|
|
|
if(isset($order->tj_number) and !empty($order->tj_number)){
|
|
|
|
|
$peis = new PEISApiController();
|
|
|
|
|
$wait=$peis::Get($peis::Api('报告时间计算',"2403020020"),"111111","报告时间计算");
|
|
|
|
|
if(isset($wait['Data']['预计所需天数'])){
|
|
|
|
|
$wait_day=$wait['Data']['预计所需天数'];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$buy_info=json_decode($order->buy_info,true);
|
|
|
|
|
$list=[];
|
|
|
|
|
$drop_ids = ['519', '603'];
|
|
|
|
|
@ -72,7 +82,7 @@ class OrderService
|
|
|
|
|
'count'=>count($item),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
return ['department_list'=>$de_list,'wait_day'=>"10"];
|
|
|
|
|
return ['department_list'=>$de_list,'wait_day'=>$wait_day];
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
public function Cancel($orderInfo)
|
|
|
|
|
|