|
|
|
@ -14,6 +14,7 @@ namespace app\api\controller; |
|
|
|
|
|
|
|
|
|
use app\api\model\Agreement as AgreementModel; |
|
|
|
|
use app\api\model\User as UserModel; |
|
|
|
|
use app\store\model\User as StoreUserModel; |
|
|
|
|
use app\api\model\user\BalanceLog; |
|
|
|
|
use app\api\model\user\GoodSource as GoodsSourceModel; |
|
|
|
|
use app\api\model\user\InvoiceOrder; |
|
|
|
@ -315,5 +316,17 @@ class User extends Controller |
|
|
|
|
$Qrcode = new InviteUser($userInfo, 'MP-WEIXIN'); |
|
|
|
|
return $this->renderSuccess(['imageUrl' => $Qrcode->getImage()]); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 用户列表 |
|
|
|
|
* @return Json |
|
|
|
|
* @throws \think\db\exception\DbException |
|
|
|
|
*/ |
|
|
|
|
public function list(): Json |
|
|
|
|
{ |
|
|
|
|
// 用户列表 |
|
|
|
|
$model = new StoreUserModel; |
|
|
|
|
$list = $model->getList($this->request->param()); |
|
|
|
|
return $this->renderSuccess(compact('list')); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|