'待审核', self::AUDIT_STATUS_OK => '审核通过', self::AUDIT_STATUS_REFUSE => '审核拒绝' ]; if(true === $form){ return $desc; } return $desc[$form] ?? ''; } /** * NOTE: 商家类型 * @author: 张无忌 * @param bool $form * @return array|mixed|string * */ public static function getShopTypeDesc($form = true){ $desc = [ self::SHOP_TYPE_SELF => '官方自营', self::SHOP_TYPE_IN => '入驻商家', ]; if(true === $form){ return $desc; } return $desc[$form] ?? ''; } /** * NOTE: 营业状态 * @author: 张无忌 * @param bool $form * @return array|mixed|string */ public static function getShopIsRunDesc($form = true) { $desc = [ self::SHOP_RUN_CLOSE => '暂停营业', self::SHOP_RUN_OPEN => '营业中', ]; if(true === $form){ return $desc; } return $desc[$form] ?? ''; } /** * NOTE: 商家冻结状态 * @author: 张无忌 * @param bool $form * @return array|mixed|string */ public static function getShopFreezeDesc($form = true) { $desc = [ self::SHOP_FREEZE_NORMAL => '正常', self::SHOP_FREEZE_BAN => '冻结', ]; if(true === $form){ return $desc; } return $desc[$form] ?? ''; } /** * NOTE: 商家推荐状态 * @author: 张无忌 * @param bool $form * @return array|mixed|string */ public static function getShopIsRecommendDesc($form = true) { $desc = [ self::SHOP_RECOMMEND_TRUE => '推荐', self::SHOP_RECOMMEND_FALSE => '不推荐', ]; if(true === $form){ return $desc; } return $desc[$form] ?? ''; } }