| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- <?php
- /**
- * 厦门云联储网络科技有限公司
- * https://www.baokuaiyun.com
- * Copyright (c) 2023 爆块云 All rights reserved.
- */
- namespace app\models;
- /**
- * @description:
- * @property string $huifu_id
- * @property string $card_no
- * @property string $card_name
- * @property string $cert_no
- * @property string $mobile_no
- * @property string $req_date
- * @property string $req_seq_id
- * @property string $token_no
- * @property string $user_huifu_id
- * @property integer $bind_card_stat
- * @property integer $saas_id
- * @property string $bank_name
- * @property string $card_type
- * @property string $card_bin
- * @property string $issuer_id
- * @property string $bank_code
- * agent_examine
- */
- class QuickBuckleApply extends \yii\db\ActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return '{{%quick_buckle_apply}}';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [[ 'huifu_id','card_no','card_name','cert_no','mobile_no','req_date','req_seq_id','token_no','user_huifu_id','bank_name','card_type','card_bin','issuer_id','bank_code'], 'string'],
- [['bind_card_stat', 'saas_id'], 'integer']
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'huifu_id' => '汇付商户Id',
- 'saas_id' => '商盟用户id',
- 'card_no' => '银行卡号',
- 'card_name' => '银行卡开户姓名',
- 'cert_no' => '身份证',
- 'mobile_no' => '手机号',
- 'req_date' => '请求日期',
- 'req_seq_id' => '请求流水号',
- 'token_no' => '卡令牌',
- 'user_huifu_id' => '用户汇付号',
- 'bind_card_stat' => '绑卡状态',
- 'bank_name' => '银行名称',
- 'card_type' => '银行卡类型',
- 'card_bin' => '银行卡BIN',
- 'issuer_id' => '发卡行id',
- 'bank_code' => '银行编码',
- ];
- }
- public static function add($data)
- {
- $app = new self();
- $app->huifu_id = $data['huifu_id'];
- $app->saas_id = $data['saas_id'];
- $app->card_no = $data['card_no'];
- $app->card_name = $data['card_name'];
- $app->cert_no = $data['cert_no'];
- $app->mobile_no = $data['mobile_no'];
- $app->req_date = $data['req_date'];
- $app->req_seq_id = $data['req_seq_id'];
- $app->bank_name = explode('(', str_replace('\n','', $data['bank_name']))[0];
- $app->card_type = $data['card_type'];
- $app->card_bin = $data['card_bin'];
- $app->issuer_id = $data['issuer_id'];
- $app->bank_code = $data['bank_code'];
- return $app->save();
- }
- }
|