CN111311374A - University student-based idle commodity exchange method, device, equipment and storage medium - Google Patents
University student-based idle commodity exchange method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111311374A CN111311374A CN202010179366.5A CN202010179366A CN111311374A CN 111311374 A CN111311374 A CN 111311374A CN 202010179366 A CN202010179366 A CN 202010179366A CN 111311374 A CN111311374 A CN 111311374A
- Authority
- CN
- China
- Prior art keywords
- user
- information
- article
- processing
- exchange
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000002457 bidirectional effect Effects 0.000 claims abstract description 11
- 238000004590 computer program Methods 0.000 claims description 7
- 238000004422 calculation algorithm Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3823—Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/10—Services
- G06Q50/20—Education
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Tourism & Hospitality (AREA)
- Economics (AREA)
- Marketing (AREA)
- Health & Medical Sciences (AREA)
- Primary Health Care (AREA)
- Human Resources & Organizations (AREA)
- General Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Educational Technology (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the application discloses an idle article exchange method, an idle article exchange device, idle article exchange equipment and a storage medium based on college students, which belong to the field of college student services, wherein the method comprises the steps of acquiring article demand information and first user information issued by a first user; identifying the first user information, and identifying the article demand information issued by the first user; based on a preset exchange pool, inquiring article processing information and second user information issued by a second user from the exchange pool; carrying out identification processing on the second user information, and carrying out identification processing on article processing information issued by the second user information; comparing, judging whether the articles are the same, and performing pairing processing; if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, if the first user and the second user determine article exchange, sending a prompt of successful exchange, otherwise, repeating the steps until the exchange is successful.
Description
Technical Field
The application relates to the field of university student services, in particular to an idle commodity exchange method, device, equipment and storage medium based on university students.
Background
College life is a piece of hot information which is concerned by people, the college life is also included in college school life besides university school industry life, most college students come from common families, sometimes too much study materials or daily necessities are purchased, and the burden of the college students is often caused, and at present, the flea market in college schools relieves the pressure of the college students from life and economy to a certain extent.
However, this flea market model is not convenient for more students, and requires the students to trade and search offline, which consumes much time and effort. Therefore, the prior art has the problems of time consumption, excessive energy and insufficient convenience when the idle articles of the university students are exchanged.
Disclosure of Invention
An object of the embodiment of the application is to provide an idle commodity exchange method, device, equipment and storage medium based on college students, so as to solve the problems that the prior art consumes too much time and energy and is not convenient enough when the college students perform idle commodity exchange.
In order to solve the above technical problem, an embodiment of the present application provides a university-based idle item exchange method, which adopts the following technical solutions:
a university-based method of exchanging unused items, comprising:
s1, acquiring the article demand information and the first user information issued by the first user;
s2, carrying out identification processing on the first user information based on a preset identification model, and carrying out identification processing on the article demand information issued by the first user based on a preset identification model;
s3, based on a preset exchange pool, inquiring item processing information issued by a second user and information of the second user from the exchange pool;
s4, performing identification processing on the second user information based on a preset identification model, and performing identification processing on the article processing information issued by the second user information based on a preset identification model;
s5, comparing the article demand information issued by the first user with the article processing information issued by the second user information, judging whether the articles are the same articles, and performing pairing processing;
s6, if the pairing is successful, the first user and the second user respectively send a prompt of successful pairing, a preset webSocket bidirectional connection mechanism is started, a chat mechanism is provided, if the first user and the second user determine article exchange, a prompt of successful exchange is sent, otherwise, the second user continues to be inquired from a preset exchange pool to issue article processing information and second user information, and the steps of S4, S5 and S6 are repeated until the exchange is successful.
Further, in the university-based idle commodity exchange method, the identifying the first user information based on a preset identification model includes:
and encrypting the ID information of the first user based on the MD5 value to obtain an encrypted character string U1.
Further, the university-based idle commodity exchange method, wherein the identifying, based on the preset identification model, of the commodity demand information issued by the first user includes:
and identifying the name information, the model information, the version information and the appearance picture information of the required article, and respectively encrypting to obtain an encrypted value M1.
Further, in the university-based idle commodity exchange method, the identifying the second user information based on a preset identification model includes:
and encrypting the ID information of the second user based on the MD5 value to obtain an encrypted character string U2.
Further, in the university-based idle commodity exchange method, the identifying, based on the preset identification model, of the commodity processing information issued by the second user information includes:
and identifying the name information, the model information, the version information and the appearance picture information of the object to be processed, and respectively encrypting to obtain an encrypted value M2.
Further, the university-based idle article exchange method, wherein the determining whether the article demand information issued by the first user and the article processing information issued by the second user information is the same article includes:
respectively obtaining an encrypted value M1 corresponding to the item demand information issued by the first user and an encrypted value M2 corresponding to the item processing information issued by the second user information, comparing based on a preset algorithm model to obtain a similarity value, if the similarity value meets a preset threshold value, judging that the two items are the same, otherwise, judging that the two items are not the same.
Further, the university-based idle commodity exchange method includes the pairing process that:
and acquiring an encrypted character string U1 corresponding to the ID information of the first user and an encrypted character string U2 corresponding to the ID information of the second user, and simultaneously performing decryption processing to acquire a first user ID corresponding to U1 and a second user ID corresponding to U2 respectively.
In order to solve the above technical problem, an embodiment of the present application further provides an idle article exchange device based on a university student, and the following technical solution is adopted:
a university-based idle item exchange device, comprising:
the first acquisition module is used for acquiring the article demand information and the first user information issued by the first user;
the first processing module is used for carrying out identification processing on the first user information based on a preset identification model and carrying out identification processing on the article demand information issued by the first user based on a preset identification model;
the second acquisition module is used for inquiring article processing information and second user information issued by a second user from the exchange pool based on a preset exchange pool;
the second processing module is used for carrying out identification processing on the second user information based on a preset identification model and carrying out identification processing on the article processing information issued by the second user information based on a preset identification model;
the article judgment module is used for comparing article demand information issued by a first user with article processing information issued by second user information, judging whether the articles are the same article or not, and performing pairing processing;
and the article exchange module is used for respectively sending a prompt of successful pairing by the first user and the second user if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, sending a prompt of successful exchange if the first user and the second user determine article exchange, and otherwise, continuously inquiring article processing information issued by the second user and information of the second user from a preset exchange pool, and repeating the steps of S4, S5 and S6 until the exchange is successful.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, which adopts the following technical solutions:
a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program implementing the steps of a university-based idle commodity exchange method as set forth in an embodiment of the present application.
In order to solve the above technical problem, an embodiment of the present application further provides a nonvolatile computer-readable storage medium, which adopts the following technical solutions:
a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a university-based idle commodity exchange method as set forth in an embodiment of the present application.
Compared with the prior art, the embodiment of the application mainly has the following beneficial effects:
the embodiment of the application discloses a college student-based idle article exchange method, a device, equipment and a storage medium, wherein article demand information and first user information issued by a first user are acquired; identifying the first user information, and identifying the article demand information issued by the first user; based on a preset exchange pool, inquiring article processing information and second user information issued by a second user from the exchange pool; carrying out identification processing on the second user information, and carrying out identification processing on article processing information issued by the second user information; comparing, judging whether the articles are the same, and performing pairing processing; if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, if the first user and the second user determine article exchange, sending a prompt of successful exchange, otherwise, repeating the steps until the exchange is successful. This application helps being convenient for the university student to carry out idle the processing of second-hand article, provides better life service for the university student.
Drawings
In order to more clearly illustrate the solution of the present application, the drawings needed for describing the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained by those skilled in the art without inventive effort.
FIG. 1 is a diagram of an exemplary system architecture to which embodiments of the present application may be applied;
FIG. 2 is a diagram illustrating steps in one embodiment of a university-based idle commodity exchange method as described in an example of the present application;
FIG. 3 is a flow chart of one embodiment of a university-based idle commodity exchange method as described in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of an embodiment of the university-based idle item exchange device in the embodiment of the present application;
FIG. 5 is a schematic structural diagram of a first processing module according to an embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a second processing module in the embodiment of the present application;
fig. 7 is a schematic structural diagram of an embodiment of a computer device in an embodiment of the present application.
Detailed Description
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs; the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application; the terms "including" and "having," and any variations thereof, in the description and claims of this application and the description of the above figures are intended to cover non-exclusive inclusions. The terms "first," "second," and the like in the description and claims of this application or in the above-described drawings are used for distinguishing between different objects and not for describing a particular order.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a web browser application, a shopping application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for pages displayed on the terminal devices 101, 102, 103.
It should be noted that the university-based idle commodity exchange method provided in the embodiment of the present application is generally executed by a server/terminal device, and accordingly, the university-based idle commodity exchange device is generally disposed in the server/terminal device.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, there is shown in the drawings the steps of an embodiment of a method for college-based idle commodity exchange as described in the present application, wherein the steps of an embodiment of the method for college-based idle commodity exchange comprise the steps of:
s1, acquiring the article demand information and the first user information issued by the first user;
s2, carrying out identification processing on the first user information based on a preset identification model, and carrying out identification processing on the article demand information issued by the first user based on a preset identification model;
s3, based on a preset exchange pool, inquiring item processing information issued by a second user and information of the second user from the exchange pool;
s4, performing identification processing on the second user information based on a preset identification model, and performing identification processing on the article processing information issued by the second user information based on a preset identification model;
s5, comparing the article demand information issued by the first user with the article processing information issued by the second user information, judging whether the articles are the same articles, and performing pairing processing;
s6, if the pairing is successful, the first user and the second user respectively send a prompt of successful pairing, a preset webSocket bidirectional connection mechanism is started, a chat mechanism is provided, if the first user and the second user determine article exchange, a prompt of successful exchange is sent, otherwise, the second user continues to be inquired from a preset exchange pool to issue article processing information and second user information, and the steps of S4, S5 and S6 are repeated until the exchange is successful.
In some embodiments of the present application, the identifying the first user information based on the preset identification model in step S2 includes: and encrypting the ID information of the first user based on the MD5 value to obtain an encrypted character string U1.
In some embodiments of the present application, the identifying, based on the preset identification model, the item demand information issued by the first user in the step S2 includes: and identifying the name information, the model information, the version information and the appearance picture information of the required article, and respectively encrypting to obtain an encrypted value M1.
In some embodiments of the present application, the identifying the second user information based on the preset identification model in step S4 includes: and encrypting the ID information of the second user based on the MD5 value to obtain an encrypted character string U2.
In some embodiments of the present application, the identifying, based on the preset identification model, the item processing information issued by the second user in step S4 includes: and identifying the name information, the model information, the version information and the appearance picture information of the object to be processed, and respectively encrypting to obtain an encrypted value M2.
In some embodiments of the present application, the determining, in step S5, whether the article is the same article based on the article requirement information issued by the first user and the article processing information issued by the second user information includes: respectively obtaining an encrypted value M1 corresponding to the item demand information issued by the first user and an encrypted value M2 corresponding to the item processing information issued by the second user information, comparing based on a preset algorithm model to obtain a similarity value, if the similarity value meets a preset threshold value, judging that the two items are the same, otherwise, judging that the two items are not the same.
In some embodiments of the present application, the pairing process in step S5 includes: and acquiring an encrypted character string U1 corresponding to the ID information of the first user and an encrypted character string U2 corresponding to the ID information of the second user, and simultaneously performing decryption processing to acquire a first user ID corresponding to U1 and a second user ID corresponding to U2 respectively.
With continued reference to FIG. 3, a flowchart of one embodiment of the university-based idle item exchange method of the present application is shown, the university-based idle item exchange method comprising the steps of:
In this embodiment, the acquiring the item demand information and the first user information issued by the first user includes analyzing the item demand information and the first user information issued by the first user from a user request.
In some embodiments of the present application, the identifying the first user information based on the preset identification model in step 302 includes: and encrypting the ID information of the first user based on the MD5 value to obtain an encrypted character string U1.
In some embodiments of the present application, the identifying, based on a preset identification model, the item demand information issued by the first user in step 302 includes: and identifying the name information, the model information, the version information and the appearance picture information of the required article, and respectively encrypting to obtain an encrypted value M1.
The specific implementation manner of performing encryption processing to obtain the encrypted value M1 is as follows: respectively obtaining the name information, the model information, the version information and the MD5 value judgment of the appearance picture information of the required article, and then performing character string splicing combination on the four segments, for example: there is a required article that is a 2010-journal print and cover-cover picture of college english people, the MD5 value corresponding to the name information "college english" is "4E 5E46B45FD4B 615", the MD5 value corresponding to the model information "2010-journal" is "a 56a313421B1F7 CC", the MD5 value corresponding to the version information "human religion" is "C0972973686E 212F", and the appearance picture information "cover-cover picture" are first converted into a character string, and then the MD5 value corresponding to the character string is converted into an existing picture-character conversion tool, such as: a Generator. The MD5 value is obtained as "a 009C13D53421B 1F", the four MD5 values are subjected to splicing processing, and "4E 5E46B45FD4B615a56a313421B1F7CCC0972973686E212FA009C13D53421B 1F" is the M1 value.
And 304, performing identification processing on the second user information based on a preset identification model, and performing identification processing on the article processing information issued by the second user information based on a preset identification model.
In some embodiments of the present application, the identifying the second user information based on the preset identification model in step 304 includes: and encrypting the ID information of the second user based on the MD5 value to obtain an encrypted character string U2.
In some embodiments of the present application, the identifying, based on the preset identification model, the item processing information issued by the second user in step 304 includes: and identifying the name information, the model information, the version information and the appearance picture information of the object to be processed, and respectively encrypting to obtain an encrypted value M2.
The specific implementation manner of performing encryption processing to obtain the encrypted value M2 is as follows: respectively obtaining the name information, the model information, the version information and the MD5 value judgment of the appearance picture information of the object to be processed, and then performing character string splicing combination on the four segments, for example: an article to be processed is a 2010-journal print and cover-cover picture of college english people, an MD5 value corresponding to name information "college english" is "4E 5E46B45FD4B 615", an MD5 value corresponding to model information "2010-journal" is "a 56a313421B1F7 CC", an MD5 value corresponding to version information "human religion" is "C0972973686E 212F", and an appearance picture information "cover picture" are converted into a character string, and an MD5 value corresponding to the character string is converted into a current character-conversion tool, such as: a Generator. The MD5 value is obtained as "a 009C13D53421B 1F", the four MD5 values are subjected to splicing processing, and "4E 5E46B45FD4B615a56a313421B1F7CCC0972973686E212FA009C13D53421B 1F" is the M1 value.
In some embodiments of the present application, the determining, in step 305, whether the article is the same article based on the article demand information issued by the first user and the article handling information issued by the second user information includes: respectively obtaining an encrypted value M1 corresponding to the item demand information issued by the first user and an encrypted value M2 corresponding to the item processing information issued by the second user information, comparing based on a preset algorithm model to obtain a similarity value, if the similarity value meets a preset threshold value, judging that the two items are the same, otherwise, judging that the two items are not the same.
In some embodiments of the present application, the pairing process in step 305 includes: and acquiring an encrypted character string U1 corresponding to the ID information of the first user and an encrypted character string U2 corresponding to the ID information of the second user, and simultaneously performing decryption processing to acquire a first user ID corresponding to U1 and a second user ID corresponding to U2 respectively.
The specific implementation manner of the preset algorithm model is as follows: splitting according to the number of character bits, assuming that the splitting is carried out into 4 16-bit segments, then respectively comparing, if two segments are the same, marking the two segments as 'yes', and marking the two segments as 'no', finally obtaining the proportional value of yes, if three segments are 'yes' and one segment is 'no', judging the probability of 'yes' to be 75%, and if the preset threshold is 75%, judging the two segments to be the same object; and if the preset threshold value is 100%, judging that the articles are not the same.
And 306, if the pairing is successful, respectively sending a prompt of successful pairing by the first user and the second user, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, if the first user and the second user determine article exchange, sending a prompt of successful exchange, otherwise, continuously inquiring article processing information issued by the second user and the second user information from a preset exchange pool, and repeating the steps 204, 205 and 206 until the exchange is successful.
According to the university-based idle commodity exchange method, commodity demand information and first user information issued by a first user can be acquired; identifying the first user information, and identifying the article demand information issued by the first user; based on a preset exchange pool, inquiring article processing information and second user information issued by a second user from the exchange pool; carrying out identification processing on the second user information, and carrying out identification processing on article processing information issued by the second user information; comparing, judging whether the articles are the same, and performing pairing processing; if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, if the first user and the second user determine article exchange, sending a prompt of successful exchange, otherwise, repeating the steps until the exchange is successful. This application helps being convenient for the university student to carry out idle the processing of second-hand article, provides better life service for the university student.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
With further reference to fig. 4, as an implementation of the method shown in fig. 3, the present application provides an embodiment of a university-based idle article exchange apparatus, which corresponds to the embodiment of the method shown in fig. 3, and which can be applied to various electronic devices.
As shown in fig. 4, the university-based idle article exchange device 4 according to the present embodiment includes: a first obtaining module 401, a first processing module 402, a second obtaining module 403, a second processing module 404, an item determining module 405, and an item exchanging module 406. Wherein:
a first obtaining module 401, configured to obtain item demand information and first user information issued by a first user;
a first processing module 402, configured to perform identification processing on the first user information based on a preset identification model, and perform identification processing on the item demand information issued by the first user based on a preset identification model;
a second obtaining module 403, configured to query, based on a preset exchange pool, item processing information issued by a second user and second user information from the exchange pool;
a second processing module 404, configured to perform identification processing on the second user information based on a preset identification model, and perform identification processing on the article processing information issued by the second user information based on a preset identification model;
an article judgment module 405, configured to compare the article demand information issued by the first user with the article processing information issued by the second user information, judge whether the articles are the same article, and perform pairing processing;
and the article exchange module 406 is configured to send a prompt that the first user and the second user successfully pair, respectively, start a preset webSocket bidirectional connection mechanism, provide a chat mechanism, send a prompt that the exchange is successful if the first user and the second user determine that the articles are exchanged, otherwise, continue to query the preset exchange pool for the article processing information issued by the second user and the information of the second user, and repeat steps S4, S5, and S6 until the exchange is successful.
In some embodiments of the present application, as shown in fig. 5, fig. 5 is a schematic structural diagram of a first processing module in an embodiment of the present application, where the first processing module 402 includes an identification processing unit 402a and an identification processing unit 402 b.
In some embodiments of the present application, the identification processing unit 402a is configured to perform identification processing on the first user information based on a preset identification model, specifically, perform encryption processing on ID information of the first user based on an MD5 value, and obtain an encrypted character string U1.
In some embodiments of the present application, the identification processing unit 402b is configured to perform identification processing on the item demand information issued by the first user based on a preset identification model, specifically to perform identification processing on name information, model information, version information, and appearance picture information of a demand item, and perform encryption processing respectively to obtain an encrypted value M1.
In some embodiments of the present application, as shown in fig. 6, fig. 6 is a schematic structural diagram of a second processing module in the embodiments of the present application, where the second processing module 404 includes an identification processing unit 404a and an identification processing unit 404 b.
In some embodiments of the present application, the identification processing unit 404a is configured to perform identification processing on the second user information based on a preset identification model, specifically, perform encryption processing on ID information of the second user based on an MD5 value, and obtain an encrypted character string U2.
In some embodiments of the present application, the identification processing unit 404b is configured to perform identification processing on the item processing information issued by the second user based on a preset identification model, specifically to identify name information, model information, version information, and appearance picture information of an item to be processed, and perform encryption processing respectively to obtain an encrypted value M2.
In some embodiments of the present application, when determining whether the item is the same item based on the item demand information issued by the first user and the item processing information issued by the second user information, the item determination module 405 specifically obtains the encrypted value M1 corresponding to the item demand information issued by the first user and the encrypted value M2 corresponding to the item processing information issued by the second user information, compares the two values based on a preset algorithm model, obtains a similarity value, determines that the two values are the same item if the similarity value satisfies a preset threshold, and otherwise, determines that the two values are not the same item.
In some embodiments of the present application, when performing the pairing process, the article judgment module 405 obtains the encrypted character string U1 corresponding to the ID information of the first user and the encrypted character string U2 corresponding to the ID information of the second user, and performs the decryption process to obtain the first user ID corresponding to U1 and the second user ID corresponding to U2, respectively.
According to the university-based idle article exchange device, article demand information and first user information issued by a first user are acquired; identifying the first user information, and identifying the article demand information issued by the first user; based on a preset exchange pool, inquiring article processing information and second user information issued by a second user from the exchange pool; carrying out identification processing on the second user information, and carrying out identification processing on article processing information issued by the second user information; comparing, judging whether the articles are the same, and performing pairing processing; if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, if the first user and the second user determine article exchange, sending a prompt of successful exchange, otherwise, repeating the steps until the exchange is successful. This application helps being convenient for the university student to carry out idle the processing of second-hand article, provides better life service for the university student.
In order to solve the technical problem, an embodiment of the present application further provides a computer device. Referring to fig. 7, fig. 7 is a block diagram of a basic structure of a computer device according to the present embodiment.
The computer device 7 comprises a memory 7a, a processor 7b, a network interface 7c, which are communicatively connected to each other via a system bus. It is noted that only a computer device 7 having components 7a-7c is shown in the figure, but it is to be understood that not all of the shown components need be implemented, and that more or fewer components may be implemented instead. As will be understood by those skilled in the art, the computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The computer equipment can carry out man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
The memory 7a includes at least one type of readable storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the storage 7a may be an internal storage unit of the computer device 7, such as a hard disk or a memory of the computer device 7. In other embodiments, the memory 7a may also be an external storage device of the computer device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a flash Card (FlashCard), and the like, which are provided on the computer device 7. Of course, the memory 7a may also comprise both an internal storage unit of the computer device 7 and an external storage device thereof. In this embodiment, the memory 7a is generally used for storing an operating system and various application software installed on the computer device 7, such as program codes of a university-based idle commodity exchange method. Further, the memory 7a may also be used to temporarily store various types of data that have been output or are to be output.
The processor 7b may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 7b is typically used to control the overall operation of the computer device 7. In this embodiment, the processor 7b is configured to execute the program code stored in the memory 7a or process data, for example, execute the program code of the university-based idle commodity exchange method.
The network interface 7c may comprise a wireless network interface or a wired network interface, and the network interface 7c is typically used for establishing a communication connection between the computer device 7 and other electronic devices.
The present application further provides another embodiment that provides a non-transitory computer readable storage medium storing a university-based idle commodity exchange program executable by at least one processor to cause the at least one processor to perform the steps of the university-based idle commodity exchange method as described above.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
It is to be understood that the above-described embodiments are merely illustrative of some, but not restrictive, of the broad invention, and that the appended drawings illustrate preferred embodiments of the invention and do not limit the scope of the invention. This application is capable of embodiments in many different forms and is provided for the purpose of enabling a thorough understanding of the disclosure of the application. Although the present application has been described in detail with reference to the foregoing embodiments, it will be apparent to one skilled in the art that the present application may be practiced without modification or with equivalents of some of the features described in the foregoing embodiments. All equivalent structures made by using the contents of the specification and the drawings of the present application are directly or indirectly applied to other related technical fields and are within the protection scope of the present application.
Claims (10)
1. An idle commodity exchange method based on university students is characterized by comprising the following steps:
s1, acquiring the article demand information and the first user information issued by the first user;
s2, carrying out identification processing on the first user information based on a preset identification model, and carrying out identification processing on the article demand information issued by the first user based on a preset identification model;
s3, based on a preset exchange pool, inquiring item processing information issued by a second user and information of the second user from the exchange pool;
s4, performing identification processing on the second user information based on a preset identification model, and performing identification processing on the article processing information issued by the second user information based on a preset identification model;
s5, comparing the article demand information issued by the first user with the article processing information issued by the second user information, judging whether the articles are the same articles, and performing pairing processing;
s6, if the pairing is successful, the first user and the second user respectively send a prompt of successful pairing, a preset webSocket bidirectional connection mechanism is started, a chat mechanism is provided, if the first user and the second user determine article exchange, a prompt of successful exchange is sent, otherwise, the second user continues to be inquired from a preset exchange pool to issue article processing information and second user information, and the steps of S4, S5 and S6 are repeated until the exchange is successful.
2. The college student based idle commodity exchange method according to claim 1, wherein the identification processing of the first user information based on a preset identification model comprises:
and encrypting the ID information of the first user based on the MD5 value to obtain an encrypted character string U1.
3. The university-based idle commodity exchange method according to claim 2, wherein the identifying the commodity demand information issued by the first user based on a preset identification model comprises:
and identifying the name information, the model information, the version information and the appearance picture information of the required article, and respectively encrypting to obtain an encrypted value M1.
4. The university-based idle commodity exchange method according to claim 3, wherein the identification processing of the second user information based on a preset identification model comprises:
and encrypting the ID information of the second user based on the MD5 value to obtain an encrypted character string U2.
5. The university-based idle commodity exchange method according to any one of claims 1 to 4, wherein the identification processing of the commodity processing information issued by the second user information based on a preset identification model comprises:
and identifying the name information, the model information, the version information and the appearance picture information of the object to be processed, and respectively encrypting to obtain an encrypted value M2.
6. The method of claim 5, wherein the determining whether the item is the same item based on the item demand information issued by the first user and the item handling information issued by the second user information comprises:
respectively obtaining an encrypted value M1 corresponding to the item demand information issued by the first user and an encrypted value M2 corresponding to the item processing information issued by the second user information, comparing based on a preset algorithm model to obtain a similarity value, if the similarity value meets a preset threshold value, judging that the two items are the same, otherwise, judging that the two items are not the same.
7. The method of claim 6, wherein the pairing process comprises:
and acquiring an encrypted character string U1 corresponding to the ID information of the first user and an encrypted character string U2 corresponding to the ID information of the second user, and simultaneously performing decryption processing to acquire a first user ID corresponding to U1 and a second user ID corresponding to U2 respectively.
8. An idle article exchange device based on university students is characterized by comprising:
the first acquisition module is used for acquiring the article demand information and the first user information issued by the first user;
the first processing module is used for carrying out identification processing on the first user information based on a preset identification model and carrying out identification processing on the article demand information issued by the first user based on a preset identification model;
the second acquisition module is used for inquiring article processing information and second user information issued by a second user from the exchange pool based on a preset exchange pool;
the second processing module is used for carrying out identification processing on the second user information based on a preset identification model and carrying out identification processing on the article processing information issued by the second user information based on a preset identification model;
the article judgment module is used for comparing article demand information issued by a first user with article processing information issued by second user information, judging whether the articles are the same article or not, and performing pairing processing;
and the article exchange module is used for respectively sending a prompt of successful pairing by the first user and the second user if the pairing is successful, starting a preset webSocket bidirectional connection mechanism, providing a chat mechanism, sending a prompt of successful exchange if the first user and the second user determine article exchange, and otherwise, continuously inquiring article processing information issued by the second user and information of the second user from a preset exchange pool, and repeating the steps of S4, S5 and S6 until the exchange is successful.
9. A computer device comprising a memory having stored therein a computer program and a processor which when executed implements the steps of the university-based idle commodity exchange method of any one of claims 1 to 7.
10. A non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the college-based idle commodity exchange method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010179366.5A CN111311374A (en) | 2020-03-16 | 2020-03-16 | University student-based idle commodity exchange method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010179366.5A CN111311374A (en) | 2020-03-16 | 2020-03-16 | University student-based idle commodity exchange method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111311374A true CN111311374A (en) | 2020-06-19 |
Family
ID=71145656
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010179366.5A Pending CN111311374A (en) | 2020-03-16 | 2020-03-16 | University student-based idle commodity exchange method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111311374A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111859186A (en) * | 2020-06-30 | 2020-10-30 | 北京百度网讯科技有限公司 | Information processing method, device, equipment and computer readable storage medium |
CN112712264A (en) * | 2020-12-31 | 2021-04-27 | 无锡软美信息科技有限公司 | Smart community information sharing method and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105303427A (en) * | 2015-10-15 | 2016-02-03 | 广州酷狗计算机科技有限公司 | Article exchange method and article exchange device |
CN105989528A (en) * | 2015-02-06 | 2016-10-05 | 白忠泽 | Article transfer method based on mobile Internet and system thereof |
CN108900472A (en) * | 2018-05-31 | 2018-11-27 | 北京五八信息技术有限公司 | The transmission method and device of information |
-
2020
- 2020-03-16 CN CN202010179366.5A patent/CN111311374A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105989528A (en) * | 2015-02-06 | 2016-10-05 | 白忠泽 | Article transfer method based on mobile Internet and system thereof |
CN105303427A (en) * | 2015-10-15 | 2016-02-03 | 广州酷狗计算机科技有限公司 | Article exchange method and article exchange device |
CN108900472A (en) * | 2018-05-31 | 2018-11-27 | 北京五八信息技术有限公司 | The transmission method and device of information |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111859186A (en) * | 2020-06-30 | 2020-10-30 | 北京百度网讯科技有限公司 | Information processing method, device, equipment and computer readable storage medium |
CN112712264A (en) * | 2020-12-31 | 2021-04-27 | 无锡软美信息科技有限公司 | Smart community information sharing method and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113761577B (en) | Big data desensitization method, device, computer equipment and storage medium | |
CN112836521A (en) | Question-answer matching method and device, computer equipment and storage medium | |
CN111311374A (en) | University student-based idle commodity exchange method, device, equipment and storage medium | |
CN111651749A (en) | Method and device for finding account based on password, computer equipment and storage medium | |
CN112468658A (en) | Voice quality detection method and device, computer equipment and storage medium | |
CN114996675A (en) | Data query method and device, computer equipment and storage medium | |
CN111639360A (en) | Intelligent data desensitization method and device, computer equipment and storage medium | |
CN114281552A (en) | Task scheduling method, device, equipment and medium based on directed acyclic graph | |
CN112507141B (en) | Investigation task generation method, investigation task generation device, computer equipment and storage medium | |
CN112436943B (en) | Request deduplication method, device, equipment and storage medium based on big data | |
CN112669850A (en) | Voice quality detection method and device, computer equipment and storage medium | |
CN112182157A (en) | Training method of online sequence labeling model, online labeling method and related equipment | |
CN111444235A (en) | Django-based data serialization method and device, computer equipment and storage medium | |
CN115967549A (en) | Anti-leakage method based on internal and external network information transmission and related equipment thereof | |
CN115730603A (en) | Information extraction method, device, equipment and storage medium based on artificial intelligence | |
CN112395450B (en) | Picture character detection method and device, computer equipment and storage medium | |
CN114637831A (en) | Data query method based on semantic analysis and related equipment thereof | |
CN111353768A (en) | Book borrowing supervision method, device, equipment and storage medium | |
CN114545328B (en) | Tracking method and system for optical cable inspection equipment, computer equipment and storage medium | |
CN115731057A (en) | Information generation method and device, computer equipment and storage medium | |
CN115756571A (en) | Code data processing method and device, computer equipment and storage medium | |
CN114936079A (en) | Processing method, device and equipment for process robot task and storage medium | |
CN112949317A (en) | Text semantic recognition method and device, computer equipment and storage medium | |
CN117632331A (en) | Data display method, device, computer equipment and storage medium | |
CN115168833A (en) | Password intensity detection method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |