摘要: action(); if (!in_array($action, $arr)) { // $this->verifyClient(); } } /** * 客户端验证签名 */ private function verifyClient() { //删除用户后不能在进行... 阅读全文
posted @ 2019-04-20 11:30 好笑。 阅读(203) 评论(0) 推荐(0) 编辑
摘要: ceil 进一法取整 返回大于value的下一个整数,若value有小数部分则进一位 eg:echo ceil(9.999) //10 floor 舍去法取整 返回小于value的下一个整数,若value有小数部分则舍去取整 eg:echo floor(9.999) //9 intval 对变数转成 阅读全文
posted @ 2019-04-20 11:11 好笑。 阅读(207) 评论(0) 推荐(0) 编辑
摘要: /** * Description:将秒数转换为00:00:00(时分秒格式) * Param:参数说明 * [in] $times int n秒 * Return:返回值 * 00:00:00(时分秒) */ function time_conversion($times){ $result = '00:00'; if ($times>0){ ... 阅读全文
posted @ 2019-04-20 10:31 好笑。 阅读(963) 评论(0) 推荐(0) 编辑
摘要: app_id; $secret_key = $this->secret_key; $address = $this->address; $sms_send_url = $this->sms_send_url; $content = "您的短信验证码为".$code.",10分钟内有效";/* 短信内容请以商务约定的为准,如果已经在通... 阅读全文
posted @ 2019-04-20 10:23 好笑。 阅读(433) 评论(0) 推荐(0) 编辑
摘要: key; $Timespan = $time; $SecretKey = $this->SecretKey; $token = strtoupper(md5($key.$Timespan.$SecretKey)); //获取搜索的关键字 $keyword = input('post.keyword', '')... 阅读全文
posted @ 2019-04-20 10:16 好笑。 阅读(2346) 评论(0) 推荐(0) 编辑
摘要: /** * API返回 */ function api_result($result) { if (is_string($result)){ $result['flag'] = true; $result['code'] = 10000; $result['msg'] = ... 阅读全文
posted @ 2019-04-20 10:11 好笑。 阅读(384) 评论(0) 推荐(0) 编辑