var token = localStorage.getItem( userToken ); if(!token){ alert( ); return false; } var ws = new WebSocket("ws: 127.0.0.1:8081"); when ws.onopen, I intend to send token to the server for verification, but it...
figure 1: click on the food to show the secondary category, and all the stores related to the food :(3): : ...
for business reasons, you need to bind different modules to different domain names in the tp5 framework. now, for example, www.test.com has entered the index controller index method in the hkfc module. but the second * .test.com does not work, for ...
the tuijian field is your own recommendation code in the table. Otuijian is the recommendation code that you fill in when you register. when you output the user list, count and show the number of users recommendations at the same time. I use the foll...
I encountered a problem when using thinkphp5.1x to make WeChat Mini Programs s payment. the front-end process is to request the order-issuing API first, and then request the payment interface after the order-issuing API is successful. Front-end Code:...
there is now a two-dimensional array in the following format: Array ( [0] => Array ( [id] => 38 [goods_id] => 77426 [model_name] => [model_sub_name] => Array ( ...
the framework is TP5 there is a short date when importing ! this date format cannot be used. the online search method says to use PHPExcel_Shared_Date::ExcelToPHP () , but the incoming value reported with this error is not a numeric value. Is ...
think-queue; is used in TP5, but when enabled, the Redis extension is not installed! but my extension does have I don t know why? Solve it! there s nothing wrong with the environment variable! ...
as shown in the picture, the undefinde error is reported, but I don t understand the error. Please take a look at it. ...
< H2 > problem description: < H2 > when sharing the php source code developed by the thinkphp5 framework to github or directly copying and sharing, the code involves the database account password and various third parties such as Alipay payment interf...
ThinkPhp query the following content Game game_zone; the structure of the table is zone_name-- Theater name gid-- Game ID want to query a returned json in the following format: "1": [ {"name": "", "id"...
as shown in the figure, my Role controller inherits the Common controller I perform permission verification in the initialization constructor in the Common controller. When asked to access Role index directly in the browser, the verification is suc...
A simple post request, which was normal before, suddenly went wrong. As thinkphp5.0 is not very familiar with it, it should not be a big problem. I hope you will pass by and have a look. WeChat Mini Programs client sends post request code, which does...
Can the remote one-to-many association provided by TP5 be performed in the association preload? I ve tried. Why not? article article table field articleid.. article_typetag tag table field tagid. article_tagvalue article tag table field articleid t...
for example, the user fills in Hello World in the from form, but the search url needs to be changed into search nihaoshijie, but the search value is still searched according to the string of Hello World passed by the user. Since the searched url is to be...
Business requirements, to record the visit record of the web page, according to ip, but now add one, according to the time, if the ip address is 202.192.26.26, and visited at 15:00, he will not record the visit to this web page within an hour, but will s...
$this- > request- > isPost () uses $.post (target, query) .success (function (data) { in receiving empty data to report the following error Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version....
in order to expand the following page, I want to migrate the static resources of the existing project and upload files to Aliyun s OSS. but my function of uploading pictures is to decode it in the base64, background through front-end transmission, a...
Route::post( xdk plan , xdk plan save ); Route::post( xdk plan :id fav , xdk plan fav ); Route::post( xdk plan :id comments , xdk plan comments ); is to build a restful style api xdk plan post xdk plan :id fav like xdk plan :id c...
the business need is to generate the framework that sitemap, now uses by the company, and thinkphp5, wants to use tp5 as a sitemap function ...
I want to change the nodePort range of K8s and modify the startup parameters of kube-apiserver. however, when I added this parameter, I found that the api would not work as long as the port range was not 30000-32768. I have another environment, th...
1. I use ant-design s menu navigation, plus react-router 4, everything else is normal, but when the page is refreshed, the routing address remains before refresh, while menu is not I originally wanted to set defaultkey, for menu and Synchronize, but...
when cross-compiling radiotap, there is no `le32toh definition: https: github.com radiotap r. take a look, in the header file endian.h defined, and then can not find out where the header file endian.h, kernel include does not contain is defi...
1. The maximum screen size originally set by the project is 1920 to 1080, but just changed the demand to put on the big screen, the font of the page on the big screen became illegible, the basic font 16px, and finally adopted px2remLoader, but the propor...
1. Get playlist data export function getDiscList() { const url = api getDiscList const data = Object.assign({}, commonParams, { platform: yqq , hostUin: 0, sin: 0, ein: 29, sortId: 5, nee...