/** * 根据file的md5查看文件是否已经存在,用于文件秒传 */ public static function filemd5Exist($filemd5) { $tbname = self::$messagetablePre; \Api\Model\Msqlmerge::mergeMsgTable(); if (!self::tbexists($tbname)) { return false; } $where = " where filemd5='{$filemd5}' "; $sql = "select id from {$tbname} {$where}"; return self::dbobj()->single($sql); }