123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\common\model;
-
- use app\common\basics\Models;
- use app\common\server\UrlServer;
-
-
- class Pay extends Models
- {
- protected $name = 'dev_pay';
-
-
- protected $json = ['config'];
-
-
- protected $jsonAssoc = true;
-
-
- public function getIconAttr($value, $data)
- {
- return UrlServer::getFileUrl($value);
- }
-
-
-
- public function getStatusTextAttr($value, $data)
- {
- if ($data['status'] == 1){
- return '启用';
- }
- return '关闭';
- }
-
- }
|