PalmpayTest.php 622 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Bear
  5. * Date: 2019/3/29
  6. * Time: 下午5:05
  7. */
  8. class PalmpayTest extends TestInit
  9. {
  10. public function testList()
  11. {
  12. $model = new \app\admin\model\PalmpaySubAccount();
  13. $list = $model->where('sub_account_type', \app\main\constants\PayConstents::PALMPAY_ACCOUNT_CHANNEL)->select();
  14. $data = [];
  15. foreach ($list as $item) {
  16. $data[] = [
  17. 'palmpay_sub_account_ids' => $item['id'] . '_' . $item['palmpay_company_id'],
  18. 'name' => $item['nickname'],
  19. ];
  20. }
  21. var_dump($data);
  22. }
  23. }