<?php
namespace backend\models;

use Yii;

class MemberBankInfoApi extends BaseApi
{
    public $apiUrl = 'member-bank-info';

    /**
     * 获取银行卡信息
     * @param array $data
     * @return array
     */
    public function getBankInfo($data)
    {
        $result = $this->post($this->apiUrl . '/get-bank-info', $data);
        if ($result['code'] == 1) {
            return $this->returnArray(1, $result['data'], $result['message']);
        } else {
            return $this->returnArray(0, [], $result['message']);
        }
    }

}

