123456789101112131415161718192021222324 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Bear
- * Date: 2019/3/29
- * Time: 下午5:05
- */
- class PalmpayTest extends TestInit
- {
- public function testList()
- {
- $model = new \app\admin\model\PalmpaySubAccount();
- $list = $model->where('sub_account_type', \app\main\constants\PayConstents::PALMPAY_ACCOUNT_CHANNEL)->select();
- $data = [];
- foreach ($list as $item) {
- $data[] = [
- 'palmpay_sub_account_ids' => $item['id'] . '_' . $item['palmpay_company_id'],
- 'name' => $item['nickname'],
- ];
- }
- var_dump($data);
- }
- }
|