CustomTest.php 545 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Bear
  5. * Date: 2020/5/27
  6. * Time: 下午2:16
  7. */
  8. use app\main\service\CustomService;
  9. class CustomTest extends TestInit
  10. {
  11. public function testCustomIds()
  12. {
  13. $where = [
  14. // 'admin.username'=>['LIKE', '%qds%']
  15. 'custom.id'=>179
  16. ];
  17. $listResult = CustomService::instance()->getCustomIds($where, []);
  18. var_dump($listResult);
  19. $data = CustomService::instance()->getCustomCollectData($listResult->data['ids']);
  20. var_dump($data);
  21. }
  22. }