当前位置: 首页 > news >正文

深圳公司网站建设大约多少钱响应式 官网网站

深圳公司网站建设大约多少钱,响应式 官网网站,如何判断网站是竞价站,广州网站设计首选柚米下载phpdemo算是跑起来了#xff0c;现在就要考虑租户系统如自身验证token的问题了。1、先介绍下我的代码目录2、文件执行的时序图和流程图2、代码demotest.phpfunction curl_request($url,$post,$cookie, $returnCookie0){$curl curl_init();curl_setopt($curl, CURLOPT_URL…下载phpdemo算是跑起来了现在就要考虑租户系统如自身验证token的问题了。1、先介绍下我的代码目录2、文件执行的时序图和流程图2、代码demotest.phpfunction curl_request($url,$post,$cookie, $returnCookie0){$curl  curl_init();curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_USERAGENT, Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0));curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($curl, CURLOPT_AUTOREFERER, 1);curl_setopt($curl, CURLOPT_REFERER, http://XXX);if($post) {curl_setopt($curl, CURLOPT_POST, 1);curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post));}if($cookie) {curl_setopt($curl, CURLOPT_COOKIE, $cookie);}curl_setopt($curl, CURLOPT_HEADER, $returnCookie);curl_setopt($curl, CURLOPT_TIMEOUT, 10);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);$data  curl_exec($curl);if (curl_errno($curl)) {return curl_error($curl);}curl_close($curl);if($returnCookie){list($header, $body)  explode(\r\n\r\n, $data, 2);preg_match_all(/Set\-Cookie:([^;]*);/, $header, $matches);$info[cookie]   substr($matches[1][0], 1);$info[content]  $body;return $info;}else{return $data;}}if(empty($_GET[token])){die(您非法访问);}$paramarray(token$_GET[token]);$resultcurl_request(http:/xxxxxx/ckparams.php,$param);if (!empty($result)){$vodRsp  json_decode($result,false);$status$vodRsp-status;$code$vodRsp-code;if($code!1001){echo 非法访问.$code;}}else{echo 请求参数错误;die;}$urlToken$status;?htmlhwplayerloaded(function () {var player  new HWPlayer(test,{ width: 480, height: 300, controls: true },function(){alert(1111);});player.src({src:https://613.cdn-vod.huaweicloud.com/asset/65252102f1de7c4011c969dc803f2e58/play_video/?php  echo $urlToken;?/index.m3u8,type: application/x-mpegURL});player.play();});getkey.phpfunction convertUrlQuery($query){$queryParts  explode(, $query);$params  array();foreach ($queryParts as $param) {$item  explode(, $param);$params[$item[0]]  $item[1];}return $params;}function getToken(){$url https://.$_SERVER[HTTP_HOST].$_SERVER[REQUEST_URI];$url  parse_url($url);$param_arr convertUrlQuery($url[query]);return $param_arr[token];}function curl_request($url,$post,$cookie, $returnCookie0){$curl  curl_init();curl_setopt($curl, CURLOPT_URL, $url);curl_setopt($curl, CURLOPT_USERAGENT, Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; Trident/6.0));curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);curl_setopt($curl, CURLOPT_AUTOREFERER, 1);curl_setopt($curl, CURLOPT_REFERER, http://XXX);if($post) {curl_setopt($curl, CURLOPT_POST, 1);curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post));}if($cookie) {curl_setopt($curl, CURLOPT_COOKIE, $cookie);}curl_setopt($curl, CURLOPT_HEADER, $returnCookie);curl_setopt($curl, CURLOPT_TIMEOUT, 10);curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);$data  curl_exec($curl);if (curl_errno($curl)) {return curl_error($curl);}curl_close($curl);if($returnCookie){list($header, $body)  explode(\r\n\r\n, $data, 2);preg_match_all(/Set\-Cookie:([^;]*);/, $header, $matches);$info[cookie]   substr($matches[1][0], 1);$info[content]  $body;return $info;}else{return $data;}}$keyTokenCheckgetToken();//file_put_contents(token.txt,$keyTokenCheck);if(empty($keyTokenCheck)){die;}$paramarray(token$keyTokenCheck);$resultcurl_request(http://xxxxxx/ckplaytoken.php,$param);if(!empty($result)){$rsjson_decode($result,false);$code$rs-code;$status$rs-status;if($code!1001){die;}else{$keyfile_get_contents(key.map);if($key){echo $key;}else{/*** 查询媒资密钥*/require ./cloudvod/vod/service/AssetService.php;require ./cloudvod/vod/model/QueryAssetCiphersReq.php;$req  new QueryAssetCiphersReq();$req -setAssetId(34345345345);$rsp  ;try {$rsp  AssetService::QueryAssetCiphers($req);$rsppjson_decode($rsp-getBody());$finalKeybase64_decode($rspp-dk);file_put_contents(key.map,$finalKey);echo $finalKey;} catch (Exception $e) {echo $e;}}}}ckparams.phpfunction checkAccessToken(){//查询传过来的token是否在表中存在且为0表明已经合法//userid、accessPageToken、playUrlTokenstatus,playStatus 0,1主要核对表中的token的status状态0不对1正确,return true;}if(checkAccessToken()){$resultarray(code1001,//这了自己改statusmd5(234567));}else{$resultarray(code1002,status访问非法..);}//将md5的id加固定456字符串存入playUrlToken中//更改这个token对应的status最后改变status位1表明此次完毕echo json_encode($result);?ckplaytoken.php//将传过来的32位token在表中查找存在且为0表示合法$resultarray(code1001);//返回之前将playStatus改为1echo json_encode($result);?3、坑和期间可能出现的问题、待续
http://wiki.neutronadmin.com/news/452909/

相关文章:

  • php cms网站建设中信建设有限责任公司 陈晓佳
  • 哪类公司做网站的最多开发公司预案
  • 网站代备案公司哪些网站是单页面
  • 成都网站建设专家wordpress工作室模版
  • 高密专业网站建设价格那个网站可以找人做设计
  • 沈阳市营商环境建设监督局网站网站正在建设中页面下载
  • 网站建设 排行平面设计培训线上
  • 免费网站100masp相册网站源码
  • 游戏网站怎么做推广企业培训考试
  • sns电商网站设立深圳公司
  • 二手书网站开发需求分析软件工程师怎么学
  • 高性能网站建设在线阅读新手怎么建立网站
  • wordpress模板展示网站做外贸不能访问国外网站怎么办
  • 数商云电子商务网站建设手机站和网站有区别吗
  • 医疗设备公司的网站怎么做游戏推广代理app
  • 360提交网站入口怎么做提升自己的网站
  • 吉林省建设网站莆田网站制作设计
  • 辽宁旅游网站开发目前网站建设用哪种语言
  • 设计分享网站wordpress 运营商广告
  • 网站建设广州公司哪家好北京计算机编程培训学校
  • 网站这么绑定到域名深圳快速seo排名优化
  • 自主网站制作艾奇视觉网站建设
  • 什么网站可以做数据调查问卷软件开发的模式
  • 怎么在网站后面制作官网俩个字校园网站建设培训简讯
  • 做求职网站市场织梦淘宝客网站
  • 系统的网站建设教程开发软件的工具
  • 公司网站建设要注意什么石墨网站开发
  • 怎样做自己公司的网站免费传奇无充值
  • 做直播导航网站好重庆网站建站建设平台
  • 网站flash代码网站首页布局的设计