Tag: Array
-
Post Views: 16 1. In postman postman :http://api.pcs-api.localhost/v1/mobile/rtcs/invite-accept, the data in the body is written in the redis cache in the format of an array, as shown in Figure 1 The data in the body will change every time the request is requested, and the implementation logic in the program is as follows: 3. Check the difference set of the…
-
Post Views: 15 1, CMCConsoleUser/ActionSync, existing implementation, reference:https://www.shuijingwanwq.com/2020/03/02/3964/, now need to add parameters: tenant ID 2. The parameter will be passed to the action method corresponding to the requested subcommand. Set the default value of the parameter $groupid to null 3. Determine whether the $groupId is empty, if it is not empty, and it does not exist in $HttpCMCAPiGroupIds, it…
-
Post Views: 19 1. In the rap tool, the font size of an interface document is smaller than that of other interface documents, as shown in Figure 1 2. Carefully analyze the differences and find that <object> has been lost, as shown in Figure 2 3. Decide to change (array<object>) to (array), and then the font size is normal, which…
-
Post Views: 15 1. In Postman, open the URL:http://api.pcs-api.localhost/v1/plan-config-column-users?login_id=2e368664c41b8bf511bcc9c65d86dbc3&login_tid=685f805f71faedfe215f55bbb01b50c6&filter[config_column_id]=1 , only the fields are supported: config_column_id queries, the response is as follows: 2. The SQL statement is as follows: 3. Existing new requirements need to support the fuzzy query of user_nick, but the field: user_nick does not exist in mysql ActiveRecord, but exists in Redis ActiveRecord. And Redis ActiveRecord does…
-
Post Views: 16 1. In phpstorm, the prompt: return value is expected to bearray,boolReturned less… (Ctrl+F1), as shown in Figure 1 2. Return value is expected to bearray,boolReturned Less… (Ctrl+F1) Inspection Info: Return Value Type is not compared with declared. The return value is expected to bearray,boolFewer returned…(Ctrl+F1) Verification information: The return value type is not compatible with the declaration.…
-
Post Views: 19 1. http request, get the tenant list 2. Get the tenant list (two-dimensional array), and convert the multi-dimensional array of a tree structure into a two-dimensional array
-
Post Views: 14 1. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, as shown in Figure 1 Print request parameters: 2. Posthttp://api.channel-pub-api.localhost/qq/v1/articles?group_id=015ce30b116ce86058fa6ab4fea4ac63, the request parameter UUID is the array format, as shown in Figure 2 Print request parameters: 3. Check \QQ\RESTS\Article\CreateAction.php, when the value of UUID is a single string, it is filled with the verification code 4. Reference URL:https://www.yiiframework.com/doc/guide/2.0/zh-cn/input-tabular-input, edit \QQ\RESTS\Article\CreateAction.php, when the value of UUID…
-
Post Views: 11 View code: View interface: Post print after submission: Requirement: question_type is to be inserted into the database, as a string Solution 1, directly reset $_POST[‘QuestionOrder’][‘question_type’]: Reprint out the POST variable: Solution 2: The result is that both solutions can be inserted in the question_type problem type (1 replenishment, 2 exchange, 3 returns, 4 refunds, 5…
-
Post Views: 14 Since it is necessary to determine whether a value exists in this PHP array in JavaScript, you need to pass this PHP array into JavaScript! This effect can be achieved by using JSON-encoded variables using JSON_ENCODE – JSON encoded! Finally, use $.inArray(item.gid, js_goods_ids) == -1 to determine whether the value of this js variable exists in…
