Rumah >pembangunan bahagian belakang >tutorial php >请问下Laravel与andriod的app通信?
请问下Laravel与andriod的app通信是可直接用$_POST、$_GET接收,然后echo json_decode(xxx);返回信息吗 这个放的位置可以任意放置吗
<code class="language-json"><span class="p">{</span>
<span class="nt">"data"</span><span class="p">:</span> <span class="p">[</span>
<span class="p">{</span>
<span class="nt">"id"</span><span class="p">:</span> <span class="mi">1</span><span class="p">,</span>
<span class="nt">"title"</span><span class="p">:</span> <span class="s2">"VIDEO_1"</span><span class="p">,</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="nt">"id"</span><span class="p">:</span> <span class="mi">2</span><span class="p">,</span>
<span class="nt">"title"</span><span class="p">:</span> <span class="s2">"VIDEO_2"</span><span class="p">,</span>
<span class="p">},</span>
<span class="p">{</span>
<span class="err">......</span>
<span class="p">}</span>
<span class="p">],</span>
<span class="nt">"timestamp"</span><span class="p">:</span> <span class="mi">1472200713</span><span class="p">,</span>
<span class="nt">"status"</span><span class="p">:</span> <span class="mi">200</span>
<span class="p">}</span>
</code>