Patents
Literature
Hiro is an intelligent assistant for R&D personnel, combined with Patent DNA, to facilitate innovative research.
Hiro

30results about How to "Reduce redundant code" patented technology

Subsystem page development method, storage medium and server

The invention discloses a subsystem page development method, which is used for solving the problems of redundancy of a large amount of development codes and low development efficiency easily caused in page development. The method provided by the invention comprises the steps of determining a function type of a to-be-developed page of a subsystem when the new subsystem is accessed; selecting a target page template matched with the function type of the to-be-developed page from a preset page template library, wherein the target page template is previously provided with a page layout corresponding to the function type of the to-be-developed page and one or more components, the components are provided with one or more data filters, and the data filters are used for screening out data from a specified connection database and presenting the data on the components; if to-be-configured data items exist on the target page template, configuring data values of the data items; and according to the target page template and the configured data values of the data items, generating the to-be-developed page. The invention furthermore provides a storage medium and a server.
Owner:PING AN TECH (SHENZHEN) CO LTD

Front-end page development framework

InactiveCN108874389AEnsure consistencyImprove data synchronization issuesSoftware reuseWorkloadComputer science
The invention relates to the technical field of front-end development, and provides a front-end page development framework. The front-end page development framework includes multiple page components,data caches, and framework programs. Each of the multiple page components is configured to present data obtained from the backend on the page. The framework programs are configured to save common dataused for at least two of the multiple page components from the data obtained from the backend to the data cache, so that at least two page components need to read from the data cache when getting theshared data. In the front-end page development framework, since a copy of the shared data is not saved locally at the page components, it is possible to ensure that the shared data is consistent among the page components. Developers no longer need to pay too much attention to the synchronization of shared data across components, and reduce the workload of developers significantly.
Owner:CHINA CONSTRUCTION BANK

Android application component quick development method through route configuration

The invention discloses an Android application (App) component quick development method through route configuration. The method comprises the steps that (A) a Main App project is newly created; (B) alatest basic framework and a basic function library are acquired through an Svn source code management tool, and the Main App project is introduced; (C) according to a service demand and design document, route scheduling of route configuration basic service components and calling of basic functions, a route list is generated; and (D) an automatic test frame is used to perform testing. Compared with a traditional client App development mode, the basic framework is introduced, a route scheduling mode is adopted to reuse existing components and the basic functions, the problems that App projectsare separate and the code reuse degree is low are solved, redundant codes are reduced, the development cycle is shortened, development efficiency is improved, and development and maintenance cost is greatly saved.
Owner:GUANGDONG NENGLONG EDUCATION

Micro-service management method and device based on unified management platform and computer device

The invention discloses a micro-service management method and device based on a unified management platform, a computer device and a storage medium. The method comprises the following steps of receiving a call request of a first micro-service for an appointed micro-service; if the first micro-service does not belong to a preset micro-service cluster and the specified micro-service belongs to a preset micro-service cluster, detecting whether the calling request is legal or not according to a preset legality detection rule; if the call request is legal, judging whether a communication protocol of the call request is the same as a preset communication protocol of the specified micro-service or not; and if the communication protocol of the calling request is different from the preset communication protocol of the specified micro-service, converting the communication protocol of the calling request into the preset communication protocol of the specified micro-service, and forwarding the calling request to the specified micro-service according to the preset communication protocol of the specified micro-service, so that the redundant codes and the repeated network overhead are reduced.
Owner:PING AN TECH (SHENZHEN) CO LTD

Service data interaction method, device and system

The embodiment of the invention provides a service data interaction method, device and system. The method comprises: receiving interface configuration information sent by any service page module; On the basis of the interface configuration information, configuring an HTTP request, and sending the HTTP request to a server, so that the server can return response data on the basis of the HTTP request; And receiving response data, and sending the response data to the business page module. According to the method, device and system, for Data interaction between a single service and a server, configuration information of an interface is packaged, an HTTP request is configured based on the interface configuration information; The code sharing of HTTP request configuration for the interface configuration information under different services is realized, redundant codes are reduced, the development efficiency is improved, the later maintenance cost is reduced, the coupling between different service page modules in the data interaction process is reduced, and the maintainability of a project is improved.
Owner:BEIKE TECH CO LTD

Live broadcast room template loading method and device, electronic equipment and readable storage medium

The invention provides a live broadcast room template loading method and device, electronic equipment and a readable storage medium, and relates to the technical field of the Internet. When an entering request input by a user for entering the first live broadcast room is received, the electronic equipment loads at least one target plug-in corresponding to the template of the first live broadcast room according to the mapping relation between at least one template in the stored configuration file and the plug-in; and according to a mapping relationship between at least one template in the configuration file and the template configuration information, the first template configuration information corresponding to the template of the first live broadcast room is obtained, and an interactive interface corresponding to the at least one target plug-in is output based on the first template configuration information. Therefore, loading of the live broadcast room template can be realized according to the configuration file, and meanwhile, by multiplexing the plug-in, redundant codes can be reduced, the reusability of the plug-in can be improved, repeated development can be avoided, and the development efficiency can be improved.
Owner:GUANGZHOU HUYA TECH CO LTD

Interface routing forwarding method and system, computer equipment and readable storage medium

The embodiment of the invention provides an interface routing forwarding method. The method comprises the following steps: receiving a request sent by a front end through a unified interface path layer; sending a first preset service parameter in the request to a factory class through the unified interface path layer; generating a service implementation class object based on the first preset service parameter through the factory class, and returning the service implementation class object; receiving a service implementation class object returned by the factory class through the unified interface path layer; and calling a unified interface layer through the unified interface path layer so as to call the business method of the business implementation class object through the unified interface layer. The embodiment of the invention has the advantages of clear code architecture, few redundant codes, high system safety, low development cost, high error-tolerant rate and easiness in background management.
Owner:CHINA PING AN PROPERTY INSURANCE CO LTD

Display control structure, display control method, display substrate, and display device

The invention belongs to the technical field of display, and relates to a display control structure and method and a display substrate and device. The display control structure comprises an interfacemodule, a logic configuration module, a display register module and a command unit. The command unit comprises an instruction buffer module, a register matching module, an instruction decoding moduleand an address counting module. The instruction buffer module is used for receiving and buffering at least one complete control instruction after logic analysis and configuration. The register matching module is used for receiving the control instruction and matching the corresponding instruction code according to the control instruction. The instruction decoding module is used for receiving and analyzing the instruction code to obtain each instruction field and the corresponding address from the instruction code. The address counting module is used for receiving the address and transmitting the address to the display register module so that the display register module calls and executes the corresponding control function. The display control structure can automatically recognize differentcorrespondence of different display panels calling a certain control function and has high compatibility.
Owner:BOE TECH GRP CO LTD +1

Display setting method, system and graphical user interface based on OLED screen

ActiveCN107025040AReduce wasteGood customization and scalabilityDigital output to display deviceGraphicsGraphical user interface
The invention provides a display setting method, system and graphical user interface based on an OLED screen and solves the technical problems that resources of a central processing unit are wasted and the like in the prior art. The display setting method based on the OLED screen comprises the following steps: A, switching between sibling function display interfaces and between sibling setting menu interfaces is performed through first input; B, switching between superior and subordinate function display interfaces is performed through second input; C, switching between a first-stage function display interface and a first-stage setting menu interface is performed through third input; D, switching between superior and subordinate setting menu interfaces and switching between a final-stage setting menu interface and a parameter setting interface are performed through fourth input; E, parameters are changed on the parameter setting interface through fifth input. The display setting method has the advantages that waste of quite limited CPU resources of a memory and Flash can be reduced effectively, the cross-platform portability is good, the customized interfacial expansibility is good, and the operation is simple.
Owner:义乌市智享通讯设备有限公司

Metadata-based rapid webpage development method

The invention discloses a metadata-based rapid webpage development method. The method comprises the following steps of: classifying page elements according to element categories; describing the classified page elements by utilizing metadata and storing the page elements in a database; and calling corresponding page elements from the database and configuring pages according to a configuration rule so as to obtain a complete webpage. According to the method, for the drawing of a webpage interface, an html file, a js file and a css file do not need to be created, and configuration is directly carried out on the metadata, so that the code reusing rate is high and the redundant codes are few.
Owner:弘成科技发展有限公司

Method for quickly compiling test case on Android platform

InactiveCN110941556AReduce redundant codeThe code runs stably and efficientlySoftware testing/debuggingYAMLTest case
The invention relates to a method for quickly compiling a test case on an Android platform, which comprises the following steps: S1, an android element positioning module is independent, and the positioning operation of all elements is redefined by uniformly using a YAML language; S2, abstracting all operation behaviors of the test case, and logically packaging the complex code into an independentoperation class, namely an Action class; S3, compiling a page file page. Yaml to realize a Page Object mode, and completing code decoupling and multiplexing; S4, writing a test case file case.yaml; S5, generating test case executable files xxx.py from the test case files cas.yaml in batches through a jaja2 template language; and S6, running the executable file xxx.py of the test case through thepytest. By adopting the method disclosed by the invention, a user only needs to write the test case by independently using a yaml language, so that an inexperienced person can quickly write and modifythe test case. Meanwhile, the actions of element positioning and test operation are unified, redundant codes are reduced, and the code operation is more stable and efficient.
Owner:XIAMEN MEIYA PICO INFORMATION

Chip control method and device

The invention provides a chip control method and device. The method comprises: acquiring chip information of a chip driven by an MCU; wherein the chip information comprises transmission channel information of a transmission channel of the chip; One path of input channel and at least one path of output channel of the chip are used as one path of transmission channel; and performing drive control onthe transmission channel based on the transmission channel information corresponding to the transmission channel. The invention provides a chip control method and device. A transmission channel, an input channel and at least one output channel of each chip driven by the MCU are abstracted to serve as one transmission channel, the driving modes of the transmission channels of different types of chips are the same, and therefore the same set of driving program can be adopted to drive different chips, redundant codes are reduced, and reusability is improved.
Owner:BEIJING JINGWEI HIRAIN TECH CO INC

Operation log generation method and device and fault query method and device

The embodiment of the invention discloses an operation log generation method and device and a fault query method and device. The operation log generation method comprises the steps of: receiving a to-be-executed operation, and generating a job global identifier; determining at least one to-be-executed job according to the to-be-executed operation, creating a thread for each to-be-executed job, and generating job information; allocating job identifiers to the threads according to the job global identifier, executing the corresponding to-be-executed jobs through the threads, and generating task information; and generating an operation log according to the job global identifier, the job information, the job identifiers and the task information. The information generated in the operation process is identified, all the information generated in the operation execution process is recorded in a unified mode, the operation record format is unified, processing and analysis are convenient, and later information query and fault location are facilitated. The job identifiers are generated through the job global identifier, and a relationship between the job identifiers and a relationship between the jobs are established. Calling is simple, redundant codes are saved, and the applicability is high.
Owner:北京青云科技股份有限公司

Unread message prompt implementation method and device, computer device and storage medium

The invention relates to the technical field of research and development optimization of mobile terminals, in particular to an unread message prompt implementation method and device, a computer deviceand a storage medium. The method comprises: when it is detected that an application program is started initially, obtaining a manufacturer identifier and a system version number of a terminal where the application program is located; generating a tool acquisition request according to the manufacturer identifier and the system version number, and sending the tool acquisition request to a server; receiving a message prompting tool which is returned by the server and corresponds to the manufacturer identifier and the system version number, and installing the message prompting tool; and if the unread message of the application program is detected through the message prompting tool, prompting the unread message of the application program according to the unread message. By adopting the method,the coverage rate of the unread message prompt function on the user terminal can be improved.
Owner:ONE CONNECT SMART TECH CO LTD SHENZHEN

A business data interaction method, device and system

Embodiments of the present invention provide a business data interaction method, device and system, wherein the method includes: receiving interface configuration information sent by any business page module; configuring an HTTP request based on the interface configuration information, and sending the HTTP request to the server , so that the server can return response data based on the HTTP request; receive the response data, and send the response data to the business page module. The method, device and system provided by the embodiments of the present invention aim at the data interaction between a single service and the server, by encapsulating interface configuration information and configuring HTTP requests based on the interface configuration information, it is possible to realize the HTTP request for interface configuration information under different services. Code sharing for request configuration reduces redundant code, improves development efficiency, reduces maintenance costs, reduces coupling between different business page modules during data interaction, and improves project maintainability.
Owner:BEIKE TECH CO LTD

Task processing method and device, computer equipment and storage medium

The invention discloses a task processing method and device, computer equipment and a storage medium, and relates to the technical field of computers, and the method comprises the steps: receiving a plurality of tasks from a plurality of different channels, and storing the plurality of tasks and task attributes corresponding to the tasks in a preset task table; determining a processing sequence of each task according to a task state corresponding to each task in the task table, and distributing each task to a plurality of processing nodes according to the processing sequence; and through each processing node, according to a task demand corresponding to a received target task, configuring a processing parameter matched with the task demand, and executing the target task according to the processing parameter. According to the technical scheme, redundant codes of the task processing mode can be reduced, and the task execution efficiency is improved.
Owner:平安付科技服务有限公司

Event bus registration template implementation method, storage medium, device and system

The invention discloses an event bus registration template implementation method, storage medium, equipment and system, and relates to the field of application development. The method includes: adding a layer of template activity between the user activity and the Android system AppCompatActivity, and making the user activity inherit In the template Activity, the template Activity inherits from the Android system AppCompatActivity; in the template Activity, rewrite the onCreate method in the Android system AppCompatActivity to realize the registration of the user page in the event bus, and the onDestory method to realize the anti-registration of the user page in the event bus; in the template Activity Write the get instance method to expose the Android system AppCompatActivity to the user Activity, realize the event sending of the user Activity, and rewrite the event callback function in the user Activity to realize the event receiving of the user Activity. The invention can effectively reduce redundant codes.
Owner:WUHAN DOUYU NETWORK TECH CO LTD

Log dynamic output control method and device and medium

PendingCN113687973AFlexible and convenient outputReduce wasteFault responseIntelligent editorsExtensibilityAlgorithm
The invention discloses a log dynamic output control method and device and a medium, and the method comprises the steps: determining a program function interface, and obtaining an instance object through the program function interface; performing reflection processing on the instance object to obtain an internal structure of the instance object; and matching the internal structure with a corresponding matching condition in the class data source, and determining whether the instance object outputs a log through a program function interface or not according to a matching result. By performing dynamic output control on the logs, log output is more flexible and convenient, redundant codes and repetitive work caused by log control under special conditions are greatly reduced, the logs are output completely according to output conditions required by developers, output of useless logs is reduced, and the workload of the developers is reduced, therefore, the waste of server resources is reduced, in addition, the internal structure of the instance object is obtained in a reflection mode, codes are more flexible, and the expandability of applications is greatly improved.
Owner:浪潮卓数大数据产业发展有限公司

Microservice management method, device and computer equipment based on unified management platform

This application discloses a microservice management method, device, computer equipment, and storage medium based on a unified management platform. The method includes: receiving a call request from a first microservice to a specified microservice; if the first microservice does not belongs to a preset micro-service cluster, and the specified micro-service belongs to a preset micro-service cluster, then check whether the call request is legal according to the preset validity checking rules; if the call request is legal, then judge that the Whether the communication protocol of the call request is the same as the preset communication protocol of the specified microservice; if the communication protocol of the call request is different from the preset communication protocol of the specified microservice, the communication protocol of the call request is converted A preset communication protocol for the specified microservice, and forwarding the call request to the specified microservice according to the preset communication protocol of the specified microservice. Thereby reducing redundant code and repeated network overhead.
Owner:PING AN TECH (SHENZHEN) CO LTD

Display control structure, display control method, display substrate and display device

The invention belongs to the field of display technology, and relates to a display control structure, method, display substrate and device. The display control structure includes an interface module, a logic configuration module, a display register module, and a command unit. The command unit includes an instruction buffer module, a register matching module, an instruction decoding module, and an address counting module: the instruction buffer module is used to receive and buffer at least one complete The control instruction after logical analysis and configuration; the register matching module is used to receive the control instruction and match the corresponding instruction code according to the control instruction; the instruction decoding module is used to receive and analyze the instruction code, and obtain each instruction from the instruction code The field and its corresponding address; the address counting module is used to receive the address and transmit the address to the display register module, so that the display register module calls and executes the corresponding control function. It can automatically identify different correspondences of different display panels invoking a certain control function, and has high compatibility.
Owner:BOE TECH GRP CO LTD +1

Interface log information processing method, device, storage medium and electronic equipment

The invention relates to the block chain technology, and provides an interface log information processing method and device, a storage medium and electronic equipment, and belongs to the technical field of data processing. The method comprises the steps: obtaining parameter information contained in request information if the request information for calling an interface is received; acquiring a calling state of the interface based on the calling feedback information of the interface, the calling state being used for representing a calling result of the interface; and associating the calling state with the parameter information to obtain target log information. The target log information can be stored in the blockchain node. According to the method, the readability of the interface log information is improved, and the processing efficiency of the interface log information is improved.
Owner:PING AN SECURITIES CO LTD

Service system log recording method and system based on SDK package

The invention discloses a service system log recording method and system based on an SDK. The method comprises the following steps: carrying out first annotation on classes and methods obtained from aservice layer through the SDK, assembling to generate an annotation object, and storing the annotation object in a redis cache; enabling the gateway service layer to intercept the REST interface address from the front-end service layer, matching a corresponding annotation object from the redis cache through the REST interface address, and analyzing the matched annotation object to obtain an analysis result; and enabling the gateway service layer to acquire a REST interface input parameter and a REST interface output parameter corresponding to the REST interface address, and assembling the analysis result, the REST interface input parameter and the REST interface output parameter into an operation log and stores the operation log in a database. According to the service system log recordingmethod and system based on the SDK package, log recording work of the service system is achieved in a plug-in sdk package mode, reusability of log functions is improved, and redundant codes are reduced. The log record is simplified, and the accuracy and comprehensiveness of the log are ensured.
Owner:HANGZHOU TIANKUAN TECH

Block chain-oriented key management method and device, equipment and storage medium

The invention discloses a block chain-oriented secret key management method and device, equipment and a storage medium. The block chain-oriented secret key management method comprises the steps: if rollback secret key data is detected, storing the rollback secret key data in a preset key value database, the rollback secret key data comprising a secret key and a key value corresponding to the secret key; acquiring key data in the key value database according to preset time; judging whether data corresponding to the key value exist on the block chain according to the obtained key value of the key data; if so, decrypting the data corresponding to the key value by using the obtained key of the key data, and judging whether the decryption is successful; and if the decryption is successful, storing the obtained key data in a preset relational database. By implementing the scheme, the data uplink transaction and the data key loss transaction can be separately processed, so that the key of thedata can be effectively prevented from being lost, and the negative effect caused by losing the data key is avoided.
Owner:PING AN TECH (SHENZHEN) CO LTD

Chip driving method and device, electronic equipment and storage medium

The invention discloses a chip driving method and device, electronic equipment and a storage medium, and relates to the technical field of processors. The method comprises the following steps: receiving a calling instruction; reading an executable code according to the calling instruction; acquiring a configuration file; and executing the executable code according to parameters in the configuration file. According to the chip driving method disclosed by the invention, through a method of separating logic implementation and function implementation, sharing a code part and distinguishing a function part through the configuration file, redundant codes are greatly reduced, resources required during operation are reduced, and the same driving code or configuration file can be shared when a single project needs to drive a plurality of chips of the same type.
Owner:镁佳(北京)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products