MemberauthgroupController.php 423 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\index\controller;
  3. use think\exception\ValidateException;
  4. use app\model\MemberAuthGroup;
  5. class MemberauthgroupController extends Base
  6. {
  7. public function list()
  8. {
  9. $weid = weid();
  10. $data = MemberAuthGroup::where(['status' => 1, 'weid' => $weid])
  11. ->order('id asc')
  12. ->select()
  13. ->toArray();
  14. return $this->json(['data' => $data]);
  15. }
  16. }