$mer_id])->value('now_money'); } public static function getMerId($uid) { return self::where(['uid' => $uid])->value('id'); } public static function getMerStatus($mer_id) { if (!$mer_id) return false; return (int)self::where(['id' => $mer_id])->value('status') == 0 ? true : false; } public static function getMerWhere() { return self::where(['is_del' => 0, 'estate' => 1, 'status' => 1]); } }