Payment.php 714 B

123456789101112131415161718192021
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | A3Mall
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2020 http://www.a3-mall.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: xzncit <158373108@qq.com>
  8. // +----------------------------------------------------------------------
  9. namespace app\common\models;
  10. class Payment extends Model {
  11. protected $name = "payment";
  12. public function getPayConfig($name){
  13. $row = $this->where("code",$name)->find();
  14. if(empty($row["config"])) return [];
  15. return json_decode($row["config"],true);
  16. }
  17. }