摘要:/** * 21000 App Store不能读取你提供的JSON对象 * 21002 receipt-data域的数据有问题 * 21003 receipt无法通过验证 * 21004 提供的shared secret不匹配你账号中的shared secret * 21005 receipt服务器当前不可用 * 21006 receipt合法,但是订阅已过期。服务器接收...
阅读全文
摘要:NAME beanstalkd - simple, fast work queue SYNOPSIS beanstalkd [options] DESCRIPTION Beanstalkd is a simple work-queue service. Its interface is generi
阅读全文
摘要:/** * 将秒数转为HH:MM:SS格式的时间 * @param $seconds * @return string */public static function GetHHMMSSBySeconds($seconds){ if ($seconds>3600*24) { $hours = in
阅读全文
摘要:1 /** 2 * 判断是否都是中文 3 * @param $str 4 * @return int 5 */ 6 public static function IsAllChinese($str) 7 { 8 $len = preg_match('/^[\x{4e00}-\x{9fa5}]+$/u
阅读全文
摘要:1 /** 2 * 生成缩略图 3 * @param string 源图绝对完整地址{带文件名及后缀名} 4 * @param string 目标图绝对完整地址{带文件名及后缀名} 5 * @param int 缩略图宽{0:此时目标高度不能为0,目标宽度为源图宽*(目标高度/源图高)} 6 * @
阅读全文
摘要:1 class MoneyUtil 2 { 3 static $basical = array(0=>"零","壹","贰","叁","肆","伍","陆","柒","捌","玖"); 4 static $advanced=array(1=>"拾","佰","仟&qu
阅读全文
摘要:1 /** 2 * 根据两点经度和纬度获取距离 3 * @param $lng1 4 * @param $lat1 5 * @param $lng2 6 * @param $lat2 7 * @return float 8 */ 9 public static function GetDistanc
阅读全文
摘要:1 /** 2 * 从规定字符中生成固定位数随即串 3 * @param int $l 位数 4 * @param string $c 数据来源字符串 5 * @return string 返回随即串 6 */ 7 public static function mt_rand_str ($l, $c
阅读全文