Uninote
Uninote
用户根目录
每日点滴

<!DOCTYPE html> <html><head><meta http-equiv='Content-Type' content='text/html; charset=utf8'><title>mynote dev log</title> <script> var g_resRoot = '../../__res/'; var g_json_outline = '{"children":[{"children":[],"level":1,"lvNumber":"1","text":"2018-4-30"},{"children":[],"level":1,"lvNumber":"2","text":"2018-9-8 check"},{"children":[],"level":1,"lvNumber":"3","text":"2019-2-15 check"},{"children":[],"level":1,"lvNumber":"4","text":"2019-3-8"},{"children":[],"level":1,"lvNumber":"5","text":"2019-3-10"},{"children":[],"level":1,"lvNumber":"6","text":"2019-4-23"}],"level":0,"lvNumber":"","text":"mynote dev log"}'; </script> <link rel='stylesheet' type='text/css' href='../../__res/common.css'><style>.s0{color:#000000;} .s1{color:#000000;} .s2{color:#000000;} .s3{color:#000000;} .s4{color:#000000;} .s5{color:#000080;} .s6{color:#000000;} .s7{color:#660000;} .s8{color:#008000;} .s9{color:#660e7a;} .s10{color:#0000ff;} .s11{color:#c80000;} .s12{color:#808080;} </style> </head><body> <script src='../../__res/util.js'></script><div id='outline'> <li><a href='#ol_0' style='font-weight:bold; font-size:22px'>mynote dev log</a></li> <li> <a href='#ol_1' >2018-4-30</a></li> <li> <a href='#ol_2' >2018-9-8 check</a></li> <li> <a href='#ol_3' >2019-2-15 check</a></li> <li> <a href='#ol_4' >2019-3-8</a></li> <li> <a href='#ol_5' >2019-3-10</a></li> <li> <a href='#ol_6' >2019-4-23</a></li> </div>

<pre id='ol_0' class='title'>mynote dev log</pre> <pre><d class='s0'></d></pre> <h1 id='ol_1'>2018-4-30</h1> <pre><d class='s1'>php session</d></pre> <pre><d class='s1'>前后台服务器使用相同的phpsessionid存储用户数据,造成了第二次session_start()死锁</d></pre> <pre><d class='s1'>解决办法:</d></pre> <pre><d class='s1'>1、前后台服务器分别部署</d></pre> <pre><d class='s1'>2、使用<a href='https://www.zhihu.com/question/36724306'>token</a>机制</d></pre> <pre><d class='s1'>3、session用完即刻关闭,使用时才start。</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s2'>43c91f606434bed88c7758c6a7b3acd13a251dda</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_2'>2018-9-8 check</h1> <pre><d class='s3'>457ca977cb3731789297497849c7d1fc0e19707c</d></pre> <pre><d class='s3'>0c6689c81195ed30907fff59b208fdb3bd940b24</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_3'>2019-2-15 check</h1> <pre><d class='s3'>SHA-1: dccd6fd169fb80c8eaba85ec4143e3e3fd38a099</d></pre> <pre><d class='s3'>* </d><d class='s4'>【更新】</d><d class='s2'>- </d><d class='s4'>替换新的</d><d class='s2'>markdown</d><d class='s4'>解析库</d></pre> <pre><d class='s1'>chk190215</d></pre> <pre><d class='s1'></d></pre> <t id='9bda52be-6e4b-403d-8c58-00dfc4c30285'> <pre class='tnd_head'>lv1= lv2= type=</pre> <pre><d class='s1'>windows下需要修改这里,才能前后分离:</d></pre> <pre><d class='s5'>public function </d><d class='s6'>http_post_proxy(</d><d class='s7'>$url</d><d class='s6'>, </d><d class='s7'>$params</d><d class='s6'>)</d></pre> <pre><d class='s6'>{</d></pre> <pre><d class='s6'> </d><d class='s7'>$params </d><d class='s6'>= http_build_query(</d><d class='s7'>$params</d><d class='s6'>);</d></pre> <pre><d class='s6'> slog(</d><d class='s8'>"url: </d><d class='s7'>$url</d><d class='s8'>, params: </d><d class='s7'>$params</d><d class='s8'>"</d><d class='s6'>);</d></pre> <pre><d class='s6'> </d><d class='s7'>$ch </d><d class='s6'>= curl_init();</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_URL</d><d class='s6'>, </d><d class='s7'>$url</d><d class='s6'>);</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_POST</d><d class='s6'>, </d><d class='s5'>true</d><d class='s6'>);</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_POSTFIELDS</d><d class='s6'>, </d><d class='s7'>$params</d><d class='s6'>);</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_RETURNTRANSFER</d><d class='s6'>, </d><d class='s10'>1</d><d class='s6'>);</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_TIMEOUT</d><d class='s6'>, </d><d class='s10'>10</d><d class='s6'>);</d></pre> <pre><d class='s6'> curl_setopt(</d><d class='s7'>$ch</d><d class='s6'>, </d><d class='s9'>CURLOPT_COOKIE</d><d class='s6'>, </d><d class='s8'>"PHPSESSID="</d><d class='s6'>.</d><d class='s11'>session_id()."1</d><d class='s8'>; path=/"</d><d class='s6'>);</d><d class='s12'>//</d></pre> </t> <pre><d class='s1'></d></pre> <h1 id='ol_4'>2019-3-8</h1> <pre><d class='s1'>需要composer</d></pre> <pre><d class='s1'>安装php7</d></pre> <pre><d class='s1'>save 有问题</d></pre> <pre><d class='s1'></d></pre> <h1 id='ol_5'>2019-3-10</h1> <pre><d class='s1'>8a47a6ef5dafba6f7f8b1e1508bb72b17d9f13a8</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s1'>日志工具 addi:</d></pre> <pre><d class='s3'>SHA-1: e7bcacb9fcc31b80fea83b8b3a403b5a1de7f3cd</d></pre> <pre><d class='s3'>* </d><d class='s4'>【</d><d class='s2'>bug</d><d class='s4'>】</d><d class='s2'>- </d><d class='s4'>修复记录时间显示错误的问题</d></pre> <pre><d class='s3'></d></pre> <h1 id='ol_6'>2019-4-23</h1> <pre><d class='s3'>SHA-1: 3a9ab0bdd2acb133b0105a6017a551254f83aa97</d></pre> <pre><d class='s3'>* artag_classify </d><d class='s4'>表初始化数据</d></pre> <pre><d class='s1'></d></pre> <pre><d class='s0'><a href='../todo_pvt.html#3ad92e64-7483-4faf-a0f1-b80bf969d885'>curl gogs 添加协作者 windows下有问题: </a></d></pre> </body></html>

mynote_design

mynote_es

点赞(0) 阅读(51) 举报
目录
标题