This commit is contained in:
mkm 2023-08-25 11:11:45 +08:00
parent 1ce53203f3
commit 2121faa335
2 changed files with 2 additions and 2 deletions

View File

@ -161,7 +161,7 @@ class IndexController extends BaseApiController
public function notifyAuthentication()
{
$parmas = Request()->param();
Log::info('notifyAuthentication', $parmas);
Log::error('notifyAuthentication', $parmas);
if ($parmas) {
Company::where('id',$parmas['id'])->update(['is_authentication'=>1]);
return json(['success' => true, 'msg' => '成功']);

View File

@ -126,7 +126,7 @@ class TaskController extends BaseApiController
$task['extend']['update']['terminus'] = $parmas['terminus'];
}
if (isset($parmas['transfer'])) {
if( $parmas['terminus']['lnglat'][0]==null || $parmas['terminus']['lnglat'][0]<=0){
if( $parmas['transfer']['lnglat'][0]==null || $parmas['transfer']['lnglat'][0]<=0){
return $this->fail('定位不存在');
}
$res = App(RemoteController::class)->coordinate($datas, $parmas['transfer']['lnglat'][0], $parmas['transfer']['lnglat'][1]);