Example #1
0
 public function doTest()
 {
     var_dump(sys_get_temp_dir());
     die;
     var_dump(\Api\Model\Msqlmerge::getMsgTables("webchat", 12));
     die;
     var_dump(pathinfo('jfkdfj', PATHINFO_EXTENSION));
     die;
     $str = $this->toStr('pwd');
     var_dump(\Api\Model\Mcommon::encryptPwd($str));
 }
Example #2
0
 /**
  * 根据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);
 }