Cloud mobile phone script publishing method and device, electronic equipment and storage medium

By obtaining script publishing context information in the cloud mobile aPaaS platform and matching the target grayscale cloud mobile script, the grayscale release of cloud mobile scripts is realized, solving the problem of large-scale release impact, and improving the accuracy and customization of release ability to reduce the impact of failure.

CN119271216APending Publication Date: 2025-01-07HUNAN MC TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411299367.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In the cloud mobile aPaaS platform, the full launch of cloud mobile scripts affects all cloud mobile merchants and users, resulting in a wide range of fault impacts and is difficult to accurately control and customize.

Method used

Provide a cloud mobile phone script publishing method, which can obtain script publishing context information, query and match target grayscale cloud mobile phone scripts, realize grayscale release based on script publishing context information, support multi-dimensional grayscale release, and ensure that scripts are pre-empted on the server. Build and save.

Benefits of technology

The grayscale release of cloud mobile phone scripts is realized, reducing the impact of failures due to script problems, improving the accuracy and customization of releases, and ensuring the user experience of cloud mobile phone merchants and users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119271216A_ABST
    Figure CN119271216A_ABST
Patent Text Reader

Abstract

The invention provides a cloud mobile phone script release method and device, electronic equipment and a storage medium, and relates to the technical field of computers, in particular to the cloud computing technology. The method comprises the steps of obtaining script release context information in response to a script release request; querying whether a target grayscale cloud mobile phone script matched with the script release context information exists in the server; wherein the target gray level cloud mobile phone script is a cloud mobile phone script which is pre-constructed and stored in the server side and supports multi-dimensional gray level release; and in response to the existence of the target gray level cloud mobile phone script, performing gray level release on the target gray level cloud mobile phone script based on the script release context information. According to the method and the device, gray release of cloud mobile phone scripts is realized on the cloud mobile phone aPaaS platform, and the influence of faults caused by script problems is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to cloud computing technology, and specifically to a cloud phone script publishing method, device, electronic device, storage medium and computer program product. Background Art

[0002] Cloud Phone aPaaS (Application Platform as a Service) is a platform for developers and enterprises to create cloud phone services based on cloud computing technology. Cloud Phone aPaaS provides a series of visual development tools and interfaces, allowing developers to quickly build cloud phone applications through simple drag and drop, configuration and other operations. Summary of the invention

[0003] The present invention provides a cloud phone script publishing method, device, electronic device, storage medium and computer program product.

[0004] According to one aspect of the present disclosure, a cloud phone script publishing method is provided, which is applied to a server of a cloud phone aPaas platform, and the method includes:

[0005] In response to the script publishing request, obtaining script publishing context information;

[0006] Querying from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing;

[0007] In response to the existence of a target grayscale cloud phone script, the target grayscale cloud phone script is grayscale published based on the script publishing context information.

[0008] According to another aspect of the present disclosure, a cloud phone script publishing device is provided, which is configured on the server side of the cloud phone aPaas platform, and the device includes:

[0009] A context acquisition module, used to obtain script publishing context information in response to a script publishing request;

[0010] A query module is used to query from the server whether there is a target grayscale cloud phone script that matches the script release context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale release;

[0011] The first publishing module is used to grayscale publish the target grayscale cloud phone script based on the script publishing context information in response to the existence of the target grayscale cloud phone script.

[0012] According to another aspect of the present disclosure, there is provided an electronic device, comprising:

[0013] at least one processor; and

[0014] a memory communicatively connected to at least one processor; wherein,

[0015] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor so that the at least one processor can execute the cloud phone script publishing method of any embodiment of the present disclosure.

[0016] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to enable a computer to execute the cloud phone script publishing method of any embodiment of the present disclosure.

[0017] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the cloud phone script publishing method of any embodiment of the present disclosure is implemented.

[0018] According to the technology disclosed in the present invention, the grayscale release of cloud phone scripts is implemented on the cloud phone aPaaS platform, reducing the impact of failures caused by script problems.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 It is a flowchart of a cloud phone script publishing method according to an embodiment of the present disclosure;

[0022] Figure 2a It is a flowchart of another cloud phone script publishing method according to an embodiment of the present disclosure;

[0023] Figure 2b is a schematic diagram of a newly added cloud phone script configuration page according to an embodiment of the present disclosure;

[0024] Figure 3a It is a flowchart of another cloud phone script publishing method according to an embodiment of the present disclosure;

[0025] Figure 3b It is a logical schematic diagram published by a cloud phone script according to an embodiment of the present disclosure;

[0026] Figure 4 It is a structural diagram of a cloud phone script publishing device according to an embodiment of the present disclosure;

[0027] Figure 5 It is a block diagram of an electronic device used to implement the cloud phone script publishing method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0029] In the disclosed solution, the cloud phone aPaaS platform serves as a platform for hosting various B-side cloud phone merchants. It involves many cloud phone scripts, such as application installation, application uninstallation, application start and stop, image mounting, image uninstallation and other types of scripts. These scripts are effective for merchants across the platform. When a script is modified, it is directly released in full. At this time, if there are some unknown problems in the script, it will affect the use of all cloud phone merchants on the platform and their downstream cloud phone users, and the impact is relatively wide. Based on this, the present disclosure proposes a cloud phone script publishing method to realize the grayscale release of cloud phone scripts in the cloud phone aPaaS platform. The specific process can be seen in the following embodiments.

[0030] Figure 1 This is a schematic diagram of a cloud phone script publishing method according to an embodiment of the present disclosure. This embodiment can be applied to scenarios where cloud phone scripts are published on a cloud phone aPaaS platform. The method can be executed by a cloud phone script publishing device, which is implemented in software and / or hardware and configured in an electronic device, which can be a server device.

[0031] like Figure 1 As shown, the cloud phone script publishing method applied to the server of the cloud phone aPaas platform specifically includes the following:

[0032] S101. In response to a script publishing request, obtain script publishing context information.

[0033] In the disclosed embodiment, the script publishing request can be triggered by the cloud phone merchant in the management interface of the cloud phone aPaaS platform. For example, the cloud phone merchant can trigger the script publishing request by touching the "Publish Script" control; wherein the cloud phone merchant generally refers to a commercial entity or service provider that provides cloud phone services to the outside world based on the cloud phone aPaaS platform. When triggering the script publishing, the cloud phone merchant generally provides relevant information about the cloud phone script publishing, and the cloud phone aPaaS platform server can collect the relevant information as the script publishing context information.

[0034] Optionally, the script publishing context information includes at least one of the following: script type information (such as application installation, application uninstallation, application start and stop, image mounting, image uninstallation, etc.), target cloud phone merchant information that triggers the script publishing request (such as name or other unique identification information), target cloud phone instance information that needs to execute the cloud phone script to be published (such as cloud phone number), target cloud phone instance associated with target cloud phone user information (i.e. user-related information that owns the target cloud phone instance, such as user ID), and target cloud phone application information that may be associated when executing the cloud phone script to be published (such as application ID).

[0035] In this way, the server can ensure the correct execution of the cloud phone script release by obtaining the script release context information. In addition, by obtaining the above information as the script release context information, the server can select a suitable cloud phone script that supports grayscale release based on the script release context information, thereby ensuring that the cloud phone script can achieve grayscale release.

[0036] S102: Query from the server whether there is a target grayscale cloud phone script that matches the script publishing context information.

[0037] In the disclosed embodiment, the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server side, and supports multi-dimensional grayscale release. It should be noted that the cloud phone script that supports multi-dimensional grayscale release is pre-configured by the administrator of the cloud phone aPaaS platform in the console of the cloud phone aPaaS platform (which can be understood as the front end of the cloud phone aPaaS platform). For example, the platform administrator configures the corresponding cloud phone script that supports grayscale release according to the customization needs of the cloud phone merchant, and saves it on the server side to meet the script customization needs. In this way, the ability to configure customized cloud phone scripts is added to the cloud phone aPaaS platform. It can be understood that the cloud phone aPaaS platform provides the ability to create and save cloud phone scripts that can be released in grayscale, which is a prerequisite for the cloud phone script to achieve grayscale release.

[0038] In an optional implementation, querying from the server whether there is a target grayscale cloud phone script that matches the script release context information includes: first, according to the script type information, obtaining a candidate grayscale cloud phone script with the same script type from the server; thus, a preliminary screening of cloud phone scripts that support grayscale release saved by the server is achieved, and the number of candidate grayscale cloud phone scripts screened out can be multiple; then, for each candidate grayscale cloud phone script, the grayscale release dimension and release target supported by the candidate grayscale cloud phone script are obtained; optionally, the grayscale release dimension can be a cloud phone merchant, in which case the release target includes the unique identifier of one or more specific cloud phone merchants; the grayscale release dimension can be a cloud phone instance, in which case the release target can be the number or other unique identifier of one or more cloud phone instances; the grayscale release dimension can be a cloud phone user, in which case the release target includes the unique identifier of one or more cloud phone users; the grayscale release dimension is a cloud phone application, in which case the release target can be the identifier of one or more cloud phone applications. It can be understood that the grayscale release dimensions and release targets supported by the candidate grayscale cloud phone script are determined during the script creation process and can be directly obtained by the server. Finally, according to the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script, combined with the script publishing context information, determine whether the candidate grayscale cloud phone script is the target grayscale cloud phone script; that is, by judging whether the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script include the cloud phone merchants, cloud phone instances, cloud phone applications, and cloud phone users involved in the script publishing context, determine whether the candidate grayscale cloud phone script can be used as the target grayscale cloud phone script. Through the above process, it is possible to quickly and accurately discover whether the server stores the target grayscale cloud phone script that meets the requirements of the cloud phone merchant to be published.

[0039] In the specific implementation, according to the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script and the script publishing context information, it is determined whether the candidate grayscale cloud phone script is the target grayscale cloud phone script, including the following steps:

[0040] If the grayscale publishing dimension is cloud phone merchants and the publishing target includes multiple target cloud phone merchant information, the cloud phone merchant information that triggers the script publishing request is compared with the target cloud phone merchant information to obtain a first comparison result. The first comparison result includes two types. The positive result is: the cloud phone merchant information that triggers the script publishing request belongs to the publishing target under the grayscale publishing dimension; the reverse result is: the cloud phone merchant information that triggers the script publishing request does not belong to the publishing target under the grayscale publishing dimension.

[0041] If the grayscale release dimension is a cloud phone instance and the release target includes multiple cloud phone instance information, the multiple cloud phone instance information included in the release target is compared with the target cloud phone instance information to obtain a second comparison result. The second comparison result includes two types. The positive result is: the target cloud phone instance information belongs to the release target under the grayscale release dimension; the negative result is: the target cloud phone instance information does not belong to the release target under the grayscale release dimension.

[0042] If the grayscale release dimension is cloud phone users and the release target includes multiple cloud phone user information, the multiple cloud phone user information included in the release target is compared with the target cloud phone user information to obtain a third comparison result. The third comparison result includes two types, the positive result is: the target cloud phone user information belongs to the release target under the grayscale release dimension; the negative result is: the target cloud phone user information does not belong to the release target under the grayscale release dimension.

[0043] If the grayscale release dimension is a cloud phone application and the release target includes multiple cloud phone application information, the multiple cloud phone application information included in the release target is compared with the target cloud phone application information to obtain a fourth comparison result. The fourth comparison result includes two types, the positive result is: the target cloud phone application information belongs to the release target under the grayscale release dimension; the negative result is: the target cloud phone application information does not belong to the release target under the grayscale release dimension.

[0044] Finally, according to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result, it is determined whether the candidate grayscale cloud phone script is the target grayscale cloud phone script. Optionally, only when the four judgment results are positive at the same time, the candidate grayscale cloud phone script is determined to be the target grayscale cloud phone script. This can improve the accuracy of the target grayscale cloud phone script selection, and thus improve the accuracy of the grayscale release of the cloud phone script.

[0045] S103. In response to the existence of a target grayscale cloud phone script, grayscale publishing is performed on the target grayscale cloud phone script based on script publishing context information.

[0046] Optionally, after determining the target cloud phone instance to which the target grayscale cloud phone script is to be sent based on the script publishing context information, the target grayscale cloud phone script can be sent to the target cloud phone instance for execution, and the script execution result can be obtained from the target cloud phone instance.

[0047] In the specific implementation, a communication connection can be established between the server and the target cloud phone instance. This can be achieved through network protocols (such as HTTP, SSH, etc.). Then, the target grayscale cloud phone script is transferred to the target cloud phone instance through the established connection. The transmission method can be direct file transfer, command line parameter passing, or through a specific API call. During the transmission process, the server can monitor the transmission progress and status to ensure that the script is completely transmitted to the cloud phone. In addition, after the transmission is completed, the target cloud phone instance can verify and verify the received target grayscale cloud phone script to ensure the integrity and correctness of the target grayscale cloud phone script. The verification can be achieved by calculating the hash value of the script or performing other forms of verification. If the script is found to be damaged or incomplete, the server can retransmit it or take other repair measures. After the target cloud phone instance receives the target grayscale cloud phone script, it is installed and configured according to the script type and requirements, and then the target grayscale cloud phone script is executed in a predetermined manner. After the script is executed, the target cloud phone instance feeds back the script execution result to the server. The script execution result may include the script's output information, error log, execution time, etc. The server can perform further processing based on the script execution results, such as recording logs, notifying users, and performing data analysis.

[0048] In the disclosed embodiment, a suitable target grayscale cloud phone script can be selected according to the script publishing context, and then the target grayscale cloud phone script can be grayscale published. In this way, the effect of grayscale publishing of scripts on the cloud phone aPaas platform is achieved.

[0049] Figure 2a FIG. 1 is a flow chart of another method for publishing a cloud phone script according to an embodiment of the present disclosure. Figure 2a As shown, the cloud phone script publishing method specifically includes the following steps:

[0050] S201. Receive the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform, and determine the grayscale release dimensions supported by the script type.

[0051] S202. Send the grayscale release dimensions supported by the script type to the console to display them to the platform administrator.

[0052] S203. Receive and save the cloud phone script supporting grayscale publishing sent by the console.

[0053] In the embodiment of the present disclosure, the cloud phone sPaas platform consists of two parts: one is the server used to execute the cloud phone script publishing method of the present disclosure, and the other is the console, which is the front end of the cloud phone sPaas platform and is used by the platform administrator to configure the cloud phone script that supports grayscale publishing.

[0054] The console of the cloud phone sPaas platform can display the cloud phone script management page to the platform administrator. In response to the platform administrator's operation of adding a cloud phone script that supports grayscale release, the console displays the newly added cloud phone script configuration page to the platform administrator. The platform administrator can fill in the script name in the grayscale name input control on the page; and select the script number through the drop-down operation in the script number drop-down control. There is a mapping relationship between the script number and the script type. After detecting that the platform administrator has selected the script number, the console can determine the script type of the cloud phone script to be created by the platform administrator based on the mapping relationship, and send the determined script type to the server of the cloud phone sPaas platform, that is, the server receives the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform.

[0055] Since different script types support different grayscale release dimensions, for example, the application installation script supports grayscale release according to the four dimensions of cloud phone merchants, cloud phone users, cloud phone applications, and cloud phone instances; while the file upload script only supports grayscale release according to the three dimensions of cloud phone merchants, cloud phone users, and cloud phone instances, because the file upload script is not related to the application. Therefore, the console can send the script type of the cloud phone script to be created by the platform administrator to the server, so that the server can query and determine the grayscale release dimensions supported by the script type. Then the server can send the grayscale release dimensions supported by the script type to the console to show it to the platform administrator. In this way, the administrator can select the grayscale release dimensions supported by the cloud phone script to be created, and after selecting the grayscale release dimension, the release target under the grayscale release dimension can be determined. It can be understood that different grayscale release dimensions have different corresponding release targets. For example, if the selected grayscale release dimension is cloud phone merchants, then the release target can be one or more cloud phone merchants, and when setting, the unique identifier of the cloud phone merchant can be directly filled in instead.

[0056] After setting the script name, script number, grayscale release dimensions, and grayscale release targets, you can fill in the specific script content in the script content input box. Finally, the console generates a cloud phone script that supports grayscale release in response to the confirmation control triggered by the platform administrator. That is, in the disclosed solution, the cloud phone script that supports grayscale release is generated by the console based on the script name, script number, grayscale release dimensions, grayscale release targets, and script content determined by the platform administrator.

[0057] For example, see Figure 2b , which shows a schematic diagram of the newly added cloud phone script configuration page. For the specific script configuration process, please refer to the above description.

[0058] It is understandable that by generating a cloud phone script that supports grayscale release, it is possible to implement grayscale release of the cloud phone script on the cloud phone aPaas platform. That is, based on steps S201-S203, the grayscale release of the cloud phone script can be performed according to steps S204-S206.

[0059] S204: In response to the script publishing request, obtain script publishing context information.

[0060] S205. Query from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing.

[0061] S206. In response to the existence of a target grayscale cloud phone script, grayscale publishing is performed on the target grayscale cloud phone script based on the script publishing context information.

[0062] In this embodiment, the specific implementation process of steps S204-S206 can refer to the description of the above embodiment and will not be repeated here.

[0063] In the disclosed embodiment, a cloud phone script that supports grayscale release is created in the console of the cloud phone aPaas platform, and the grayscale release of the cloud phone script is achieved through the server of the cloud phone aPaas platform.

[0064] Figure 3a FIG. 1 is a flow chart of another method for publishing a cloud phone script according to an embodiment of the present disclosure. Figure 3a As shown, the cloud phone script publishing method specifically includes the following steps:

[0065] S301. Receive the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform, and determine the grayscale release dimensions supported by the script type.

[0066] S302. Send the grayscale release dimensions supported by the script type to the console to display them to the platform administrator.

[0067] S303. Receive and save the cloud phone script supporting grayscale publishing sent by the console.

[0068] S304: In response to the script publishing request, obtain script publishing context information.

[0069] S305. Query from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing.

[0070] In the embodiment of the present disclosure, the process of steps S301-S305 can refer to the above embodiment and will not be repeated here.

[0071] If there is a target grayscale cloud phone script that matches the script publishing context information, execute step S306, otherwise execute steps S307-S308.

[0072] S306. In response to the existence of a target grayscale cloud phone script, grayscale publishing is performed on the target grayscale cloud phone script based on the script publishing context information.

[0073] Optionally, the target grayscale cloud phone script is sent to the target cloud phone instance for execution, and the script execution result is obtained from the target cloud phone instance.

[0074] S307. In response to the absence of the target grayscale cloud phone script, determine the cloud phone script that supports full release and corresponds to the script type according to the script type information.

[0075] S308. Send the cloud phone script that supports full release to the target cloud phone instance, and obtain the script execution result from the target cloud phone instance.

[0076] In the disclosed embodiment, according to the script publishing context, if a matching target grayscale cloud phone script is found, grayscale publishing is performed; otherwise, the cloud phone script that supports full publishing corresponding to the script type is queried and published, thus ensuring the normal publishing of the cloud phone script.

[0077] Further, to introduce the disclosed solution, please refer to Figure 3b , which shows the logical diagram of cloud phone script publishing, including:

[0078] First, the platform administrator of the cloud phone aPaas platform configures the grayscale script. The platform administrator can trigger the script to create a new control and enter the new cloud phone script configuration page. For specific pages, see the attached Figure 2b, the platform administrator can fill in the script name in the grayscale name input control on the page; select the script number by pulling down the script number drop-down control. After detecting that the platform administrator has selected the script number, the console determines the script type of the cloud phone script to be created by the platform administrator based on the mapping relationship between the script number and the script type, and then the console requests the grayscale release dimensions supported by the script type from the server of the cloud phone aPaas platform; the server responds to the request and sends the grayscale release dimensions supported by the script type to the console and displays them in the control; the platform administrator can select the grayscale release dimensions they need from the displayed grayscale release dimensions, set the release target under the grayscale release dimension, and then fill in the specific script content, and finally click the OK control to notify the console to generate the corresponding cloud phone script that supports multi-dimensional grayscale release according to the content filled in by the platform administrator; finally, the console sends the generated script that supports grayscale release to the server's database for storage. In this way, the process of configuring cloud phone scripts that support grayscale release in the console is realized.

[0079] Furthermore, the use process of cloud phone scripts that support grayscale release is as follows: in response to a script release request, obtain the script release context information; wherein the script release context information may include script type, target cloud phone merchant information, target cloud phone instance information, target cloud phone user information, etc.; according to the script type included in the script release context, obtain the candidate grayscale cloud phone script that supports grayscale release of the script type; if the candidate grayscale cloud phone script is not empty, and the script release context information meets the release target supported by the candidate grayscale cloud phone script, then execute it as the target grayscale cloud phone script; if the candidate grayscale cloud phone script is empty or the script release context information does not meet the release target supported by the candidate grayscale cloud phone script, then obtain the cloud phone script that supports full release corresponding to the script type and execute it. The execution process is to publish the cloud phone script to the target cloud phone instance and receive the script execution result. In this way, the script release process is completed.

[0080] Figure 4 This is a schematic diagram of the structure of the cloud phone script publishing device according to an embodiment of the present disclosure. This embodiment can be applied to the scenario of publishing cloud phone scripts on the cloud phone aPaaS platform. The device can implement the cloud phone script publishing method of any embodiment of the present disclosure. Figure 4 As shown, the device 400 is configured on the server side of the cloud phone aPaas platform, and specifically includes:

[0081] The context acquisition module 401 is used to obtain script publishing context information in response to a script publishing request;

[0082] A query module 402 is used to query from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing;

[0083] The first publishing module 403 is used to grayscale publish the target grayscale cloud phone script based on the script publishing context information in response to the existence of the target grayscale cloud phone script.

[0084] In an optional implementation, the script publishing context information includes at least one of the following: script type information, target cloud phone merchant information that triggers the script publishing request, target cloud phone instance information that needs to execute the cloud phone script to be published, target cloud phone user information associated with the target cloud phone instance, and target cloud phone application information associated when executing the cloud phone script to be published.

[0085] In an optional implementation, the query module 402 includes:

[0086] A first query unit is used to obtain candidate grayscale cloud phone scripts with the same script type from the server according to the script type information;

[0087] The second query unit is used to obtain the grayscale release dimensions and release targets supported by each candidate grayscale cloud phone script for each candidate grayscale cloud phone script;

[0088] The third query unit is used to determine whether the candidate grayscale cloud phone script is a target grayscale cloud phone script based on the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script and the script publishing context information.

[0089] In an optional implementation manner, the third query unit is further configured to:

[0090] If the grayscale publishing dimension is a cloud phone merchant and the publishing target includes multiple target cloud phone merchant information, the cloud phone merchant information that triggers the script publishing request is compared with the target cloud phone merchant information to obtain a first comparison result;

[0091] If the grayscale publishing dimension is a cloud phone instance and the publishing target includes multiple cloud phone instance information, the multiple cloud phone instance information included in the publishing target is compared with the target cloud phone instance information to obtain a second comparison result;

[0092] If the grayscale publishing dimension is cloud phone users and the publishing target includes multiple cloud phone user information, then compare the multiple cloud phone user information included in the publishing target with the target cloud phone user information to obtain a third comparison result;

[0093] If the grayscale publishing dimension is cloud phone application and the publishing target includes multiple cloud phone application information, compare the multiple cloud phone application information included in the publishing target with the target cloud phone application information to obtain a fourth comparison result;

[0094] According to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result, it is determined whether the candidate grayscale cloud phone script is the target grayscale cloud phone script.

[0095] In an optional implementation, the method further includes:

[0096] A receiving module is used to receive the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform, and determine the grayscale release dimension supported by the script type;

[0097] The delivery module is used to send the grayscale release dimensions supported by the script type to the console for display to the platform administrator;

[0098] The saving module is used to receive and save the cloud phone script supporting grayscale release sent by the console; wherein the cloud phone script supporting grayscale release is generated by the console according to the script name, script number, grayscale release dimension, grayscale release target and script content determined by the platform administrator.

[0099] In an optional implementation, the first publishing module 403 is further configured to:

[0100] Send the target grayscale cloud phone script to the target cloud phone instance for execution, and obtain the script execution result from the target cloud phone instance.

[0101] In an optional implementation, the system further includes a second publishing module, configured to:

[0102] In response to the absence of the target grayscale cloud phone script, determining a cloud phone script supporting full release corresponding to the script type according to the script type information;

[0103] Send the cloud phone script that supports full release to the target cloud phone instance, and obtain the script execution result from the target cloud phone instance.

[0104] The above-mentioned product can execute the method provided by any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.

[0105] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0106] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0107] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0108] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0109] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0110] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that execute machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the cloud phone script publishing method. For example, in some embodiments, the cloud phone script publishing method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the cloud phone script publishing method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to execute the cloud phone script publishing method in any other appropriate manner (e.g., by means of firmware).

[0111] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0112] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0113] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0115] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0116] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs that are executed on the corresponding computers and have a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services. The server may also be a server of a distributed system, or a server combined with a blockchain.

[0117] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.

[0118] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.

[0119] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions provided by this disclosure can be achieved, and this document does not limit this.

[0120] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A cloud phone script publishing method, applied to the server of a cloud phone application platform as a service aPaas platform, the method comprising: In response to the script publishing request, obtaining script publishing context information; Querying from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing; In response to the existence of the target grayscale cloud phone script, the target grayscale cloud phone script is grayscale published based on the script publishing context information.

2. The method according to claim 1, wherein: The script publishing context information includes at least one of the following: script type information, target cloud phone merchant information that triggers the script publishing request, target cloud phone instance information that needs to execute the cloud phone script to be published, target cloud phone user information associated with the target cloud phone instance, and target cloud phone application information associated when executing the cloud phone script to be published.

3. The method according to claim 2, wherein: The querying from the server whether there is a target grayscale cloud phone script that matches the script publishing context information includes: According to the script type information, a candidate grayscale cloud phone script having the same script type is obtained from the server; For each of the candidate grayscale cloud phone scripts, obtain the grayscale release dimensions and release targets supported by the candidate grayscale cloud phone script; According to the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script and in combination with the script publishing context information, determine whether the candidate grayscale cloud phone script is the target grayscale cloud phone script.

4. The method according to claim 3, wherein: The step of determining whether the candidate grayscale cloud phone script is the target grayscale cloud phone script according to the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script and in combination with the script publishing context information includes: If the grayscale publishing dimension is a cloud phone merchant and the publishing target includes multiple target cloud phone merchant information, the cloud phone merchant information that triggers the script publishing request is compared with the target cloud phone merchant information to obtain a first comparison result; If the grayscale publishing dimension is a cloud phone instance and the publishing target includes multiple cloud phone instance information, then compare the multiple cloud phone instance information included in the publishing target with the target cloud phone instance information to obtain a second comparison result; If the grayscale publishing dimension is a cloud phone user and the publishing target includes multiple cloud phone user information, then compare the multiple cloud phone user information included in the publishing target with the target cloud phone user information to obtain a third comparison result; If the grayscale publishing dimension is a cloud phone application and the publishing target includes multiple cloud phone application information, then compare the multiple cloud phone application information included in the publishing target with the target cloud phone application information to obtain a fourth comparison result; According to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result, it is determined whether the candidate grayscale cloud phone script is the target grayscale cloud phone script.

5. The method according to claim 1, further comprising: Receive the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform, and determine the grayscale release dimensions supported by the script type; Sending the grayscale release dimensions supported by the script type to the console to be displayed to the platform administrator; Receive and save the cloud phone script supporting grayscale release sent by the console; wherein the cloud phone script supporting grayscale release is generated by the console according to the script name, script number, grayscale release dimension, grayscale release target and script content determined by the platform administrator.

6. The method according to claim 2, in response to the existence of the target grayscale cloud phone script, grayscale publishing the target grayscale cloud phone script in combination with the script publishing context information, comprises: The target grayscale cloud phone script is sent to the target cloud phone instance for execution, and the script execution result is obtained from the target cloud phone instance.

7. The method according to claim 2, further comprising: In response to the target grayscale cloud phone script not existing, determining a cloud phone script supporting full release corresponding to the script type according to the script type information; The cloud phone script supporting full release is sent to the target cloud phone instance, and the script execution result is obtained from the target cloud phone instance.

8. A cloud phone script publishing device, configured on the server side of a cloud phone application platform as a service aPaas platform, the device comprising: A context acquisition module, used to obtain script publishing context information in response to a script publishing request; A query module, used to query from the server whether there is a target grayscale cloud phone script that matches the script publishing context information; wherein the target grayscale cloud phone script is a cloud phone script that is pre-built and saved on the server and supports multi-dimensional grayscale publishing; The first publishing module is used for grayscale publishing the target grayscale cloud phone script based on the script publishing context information in response to the existence of the target grayscale cloud phone script.

9. The device according to claim 8, wherein: The script publishing context information includes at least one of the following: script type information, target cloud phone merchant information that triggers the script publishing request, target cloud phone instance information that needs to execute the cloud phone script to be published, target cloud phone user information associated with the target cloud phone instance, and target cloud phone application information associated when executing the cloud phone script to be published.

10. The device according to claim 9, wherein: The query module comprises: A first query unit is used to obtain a candidate grayscale cloud phone script having the same script type from the server according to the script type information; A second query unit is used to obtain, for each candidate grayscale cloud phone script, the grayscale publishing dimension and publishing target supported by the candidate grayscale cloud phone script; The third query unit is used to determine whether the candidate grayscale cloud phone script is the target grayscale cloud phone script according to the grayscale publishing dimensions and publishing targets supported by the candidate grayscale cloud phone script and in combination with the script publishing context information.

11. The device according to claim 10, wherein: The third query unit is further used for: If the grayscale publishing dimension is a cloud phone merchant and the publishing target includes multiple target cloud phone merchant information, the cloud phone merchant information that triggers the script publishing request is compared with the target cloud phone merchant information to obtain a first comparison result; If the grayscale publishing dimension is a cloud phone instance and the publishing target includes multiple cloud phone instance information, then compare the multiple cloud phone instance information included in the publishing target with the target cloud phone instance information to obtain a second comparison result; If the grayscale publishing dimension is a cloud phone user and the publishing target includes multiple cloud phone user information, then compare the multiple cloud phone user information included in the publishing target with the target cloud phone user information to obtain a third comparison result; If the grayscale publishing dimension is a cloud phone application and the publishing target includes multiple cloud phone application information, then compare the multiple cloud phone application information included in the publishing target with the target cloud phone application information to obtain a fourth comparison result; According to the first comparison result, the second comparison result, the third comparison result, and the fourth comparison result, it is determined whether the candidate grayscale cloud phone script is the target grayscale cloud phone script.

12. The apparatus according to claim 8, further comprising: A receiving module is used to receive the script type of the cloud phone script to be created by the platform administrator sent by the console of the cloud phone sPaas platform, and determine the grayscale release dimension supported by the script type; A sending module, used for sending the grayscale release dimensions supported by the script type to the console to display them to the platform administrator; A saving module is used to receive and save the cloud phone script supporting grayscale release sent by the console; wherein the cloud phone script supporting grayscale release is generated by the console according to the script name, script number, grayscale release dimension, grayscale release target and script content determined by the platform administrator.

13. The device according to claim 9, wherein the first publishing module is further configured to: The target grayscale cloud phone script is sent to the target cloud phone instance for execution, and the script execution result is obtained from the target cloud phone instance.

14. The apparatus according to claim 9, further comprising a second publishing module, configured to: In response to the target grayscale cloud phone script not existing, determining a cloud phone script supporting full release corresponding to the script type according to the script type information; The cloud phone script supporting full release is sent to the target cloud phone instance, and the script execution result is obtained from the target cloud phone instance.

15. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the cloud phone script publishing method described in any one of claims 1-7.

16. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable a computer to execute the cloud phone script publishing method according to any one of claims 1-7.

17. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the cloud phone script publishing method according to any one of claims 1-7.