This commit is contained in:
chenbo 2023-12-13 10:31:57 +08:00
parent 889c06ca96
commit 5a8ac9fe86
1 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,7 @@ namespace app\api\controller;
use app\common\model\LandCollection;
use Exception;
use think\facade\Log;
class DataCollectController extends BaseApiController
{
@ -11,7 +12,9 @@ class DataCollectController extends BaseApiController
public function collect()
{
try {
$parmas = $this->request->post();
$parmas = $this->request->post();
Log::info($parmas);
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
return $this->fail('参数错误');
}