search
Homephp教程php手册Chat little yellow chicken made by Thinkphp + aggregation interface, with source code download

If you download it, you must treat this chicken well. Download it and open it to chat! I put it on my server. During the National Day, I looked for chickens when I was bored.
http://www.wbaobao.top/talkJJ/
The core of the code is the method of calling the interface and the front-end output js.
It may not be as yellow as you think, the most yellow is in Korea. <?php <br /> namespace HomeController;<br> use ThinkController;<br> class IndexController extends Controller {<br> Public function index(){<br>           $this->display();<br> }<br> Public function data(){<br>            if (IS_POST) {<br>             $appkey = "5e70fea5553d2deea473c13b516a564a";<br>              $url = "http://op.juhe.cn/robot/index";<br>              $metock=I("post.txt","haha");<br>                $params = array(<br> "key" => $appkey,//The APPKEY you applied for for this interface<br> "info" => $metock,//The content to be sent to the robot should not exceed 30 characters<br> "dtype" => "",//The format of the returned data, json or xml, the default is json<br> "loc" => "",//Location, such as Zhongguancun, Beijing<br> "lon" => "",//Longitude, east longitude 116.234632 (retain 6 decimal places), need to be written as 116234632<br> "lat" => "",//Latitude, north latitude 40.234632 (retain 6 digits after the decimal point), need to be written as 40234632<br> "userid" => "",//1~32 digits, this userid is for each of your own users and is used for contextual association<br> );<br>                 $params=http_build_query($params);<br>                 $ispost=0;<br>                $httpInfo = array();<br>                $ch = curl_init();<br>             curl_setopt( $ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);<br>             curl_setopt( $ch, CURLOPT_USERAGENT, 'JuheData' );<br>               curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 60);<br>              curl_setopt( $ch, CURLOPT_TIMEOUT, 60);<br>              curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );<br>              curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);<br> curl_setopt( $ch , CURLOPT_URL , $url.'?'.$params );<br>              $response = curl_exec( $ch );<br>                 if ($response === FALSE) {<br>                                                                                                                                                                                                                                                           return false              }<br>              $httpCode = curl_getinfo( $ch, CURLINFO_HTTP_CODE);<br>            $httpInfo = array_merge( $httpInfo , curl_getinfo( $ch ) );<br>             curl_close( $ch );<br>             $data=json_decode($response,ture)["result"]["text"];<br>             $return=[<br>                 "text"=>$data,<br>             ];<br>             $this->ajaxReturn($return);<br>         }<br>     }<br> }

Chat little yellow chicken made by Thinkphp + aggregation interface, with source code download talkJJ.rar ( 1.25 MB 下载:63 次 )

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software