The thinkphp discussion board provides a platform for technical circles. you can seek help from various technical difficulties and publish thinkphp recruitment and chat, share the joy and troubles of IT life. come and join us! Let us all create a new and harmonious TP community!
/Define a target URL to be sent;
$ Url = "https://www.btc123.com/api/getTicker? Symbol = btcchinabtccny ";
// Define the passed parameter array;
$ Data ['buy'] = 'buy ';
$ Data ['bucydollar '] = 'bucydollar ';
// Define the returned value to receive the variable;
$ Httpstr = http ($ url, $ data, 'post', array ("Content-type: text/html; charset = utf-8 "));
// Magic lamp
$ Flash = M ('Flash')-> order ('sort ')-> limit (6)-> select ();
$ This-> assign ('Flash', $ flash );In this way, data cannot be obtained. what is the problem? has anyone foreseen it? You can also ask for help.