MemberBankcard.php 497 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class MemberBankcard extends Model
  5. {
  6. protected $connection = 'mysql';
  7. protected $pk = 'id';
  8. protected $name = 'member_bankcard';
  9. public static function getbankcard($bid)
  10. {
  11. $bankcard = self::find($bid);
  12. if(!empty($bankcard)){
  13. $bankcard = $bankcard->toArray();
  14. }
  15. return $bankcard['name'] . ";" . $bankcard['accounts'] . ";" . $bankcard['bankname'] . $bankcard['branchname'];
  16. }
  17. }