新增中台用户列表
This commit is contained in:
parent
1f2b24969e
commit
956eb7abb6
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
|
||||
namespace app\adminapi\controller\shop;
|
||||
|
||||
use app\adminapi\controller\BaseAdminController;
|
||||
use think\response\Json;
|
||||
|
||||
/**
|
||||
* 商城控制器
|
||||
* Class ProductController
|
||||
* @package app\adminapi\controller\finance
|
||||
*/
|
||||
class UserController extends BaseAdminController
|
||||
{
|
||||
|
||||
protected $shopUrl = 'http://127.0.0.1:8324';
|
||||
|
||||
public function groupLst(): Json
|
||||
{
|
||||
$params=$this->request->get();
|
||||
$result = curl_post($this->shopUrl . '/middle/user/group/lst',$params,$this->reqHeader);
|
||||
if(($result['status'] ?? 500) != 200){
|
||||
return $this->fail($result['message'] ?? '非法请求');
|
||||
}
|
||||
return json($result);
|
||||
}
|
||||
|
||||
public function labelLst(): Json
|
||||
{
|
||||
$params=$this->request->get();
|
||||
$result = curl_post($this->shopUrl . '/middle/user/label/lst',$params,$this->reqHeader);
|
||||
if(($result['status'] ?? 500) != 200){
|
||||
return $this->fail($result['message'] ?? '非法请求');
|
||||
}
|
||||
return json($result);
|
||||
}
|
||||
|
||||
public function lst(): Json
|
||||
{
|
||||
$params=$this->request->get(['nickname', 'phone', 'uid', 'group_id', 'label_id', 'sex', 'is_promoter', 'user_time_type', 'user_time', 'pay_count', 'page', 'limit']);
|
||||
$result = curl_post($this->shopUrl . '/middle/user/lst',$params,$this->reqHeader);
|
||||
if(($result['status'] ?? 500) != 200){
|
||||
return $this->fail($result['message'] ?? '非法请求');
|
||||
}
|
||||
return json($result);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue