1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- namespace app\common\model;
- use think\Model;
-
- class ActivityAreaGoods extends Model{
-
-
- const AUDIT_STATUS_WAIT = 0;
- const AUDIT_STATUS_PASS = 1;
- const AUDIT_STATUS_REFUSE = 2;
-
-
-
- public static function getAuditStatus($from = true){
- $desc = [
- self::AUDIT_STATUS_WAIT => '待审核',
- self::AUDIT_STATUS_PASS => '审核通过',
- self::AUDIT_STATUS_REFUSE => '审核拒绝',
- ];
- if(true === $from){
- return $desc;
- }
- return $desc[$from] ?? '';
- }
-
- }
|