debug
This commit is contained in:
parent
889c06ca96
commit
5a8ac9fe86
|
@ -3,6 +3,7 @@ namespace app\api\controller;
|
||||||
|
|
||||||
use app\common\model\LandCollection;
|
use app\common\model\LandCollection;
|
||||||
use Exception;
|
use Exception;
|
||||||
|
use think\facade\Log;
|
||||||
|
|
||||||
class DataCollectController extends BaseApiController
|
class DataCollectController extends BaseApiController
|
||||||
{
|
{
|
||||||
|
@ -11,7 +12,9 @@ class DataCollectController extends BaseApiController
|
||||||
public function collect()
|
public function collect()
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$parmas = $this->request->post();
|
$parmas = $this->request->post();
|
||||||
|
Log::info($parmas);
|
||||||
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
|
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
|
||||||
return $this->fail('参数错误');
|
return $this->fail('参数错误');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue