[go: up one dir, main page]

CN106022870A - Android purchase system based on geographical positional information - Google Patents

Android purchase system based on geographical positional information Download PDF

Info

Publication number
CN106022870A
CN106022870A CN201610319393.1A CN201610319393A CN106022870A CN 106022870 A CN106022870 A CN 106022870A CN 201610319393 A CN201610319393 A CN 201610319393A CN 106022870 A CN106022870 A CN 106022870A
Authority
CN
China
Prior art keywords
shopping
server
android
module
user
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
Application number
CN201610319393.1A
Other languages
Chinese (zh)
Inventor
邵世祥
李峰
郭永安
朱洪波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Post and Telecommunication University
Original Assignee
Nanjing Post and Telecommunication University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Nanjing Post and Telecommunication University filed Critical Nanjing Post and Telecommunication University
Priority to CN201610319393.1A priority Critical patent/CN106022870A/en
Publication of CN106022870A publication Critical patent/CN106022870A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0639Locating goods or services, e.g. based on physical position of the goods or services within a shopping facility
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明公开了Android平台下基于地理位置信息的购物系统,该系统通过基于Android的周围购物app的开发实例来探讨基于Android操作系统的购物的开发和实现,根据自己周边加盟网上的购物平台的商店,快速收集距离自己最近的商店,并且可以选择网上支付,利用该系统消费者可以感受到便捷,快速的网上购物的新体验。本发明基于Android平台下的周围位置信息的购物系统为消费者提供丰富的高质量服务,如丰富商品信息服务、随时的移动接入服务、多样化的交互体验以及智能服务和智能移动代理等。该系统将极大改善消费者网上购物的体验,使购物与服务向着更加精细以及高质量的方向推进。

The invention discloses a shopping system based on geographical location information under the Android platform. The system explores the development and realization of shopping based on the Android operating system through the development example of the Android-based surrounding shopping app, and joins the online shopping platform stores according to its surroundings. , quickly collect the stores closest to you, and you can choose to pay online. Using this system, consumers can feel a new experience of convenient and fast online shopping. The shopping system based on the surrounding location information under the Android platform of the present invention provides rich and high-quality services for consumers, such as rich commodity information services, mobile access services at any time, diversified interactive experiences, intelligent services and intelligent mobile agents, etc. The system will greatly improve consumers' online shopping experience, and make shopping and services more sophisticated and high-quality.

Description

Android平台下基于地理位置信息的购物系统Shopping system based on geographic location information under Android platform

技术领域technical field

本发明涉及Android平台下基于地理位置信息的购物系统,属于通信技术领域。The invention relates to a shopping system based on geographic location information under an Android platform, and belongs to the technical field of communication.

背景技术Background technique

目前在国内购物系统的开发,PHP与ASP技术应用最为广泛。而JSP由于是一种较新的技术,国内采用的较少。但在国外,JSP已经是比较流行的一种技术,尤其是电子商务类的网站,多采用JSP。由于现有的技术在安全性和跨平台性存在明显的不足:首先,PHP缺乏规模支持。其次,缺乏多层结构支持,对于大负荷站点,解决方法只有一个:分布计算。数据库、应用逻辑层、表示逻辑层彼此分开,而且同层也可以根据流量分开,组成二维阵列,而PHP则缺乏这种支持。还有上面提到过的一点,PHP提供的数据库接口支持不统一,这就使得它不适合运用在电子商务中。ASP是Microsoft开发的动态网页语言,也继承了微软产品的一贯传统,即只能运行于微软的服务器产品,IIS(Internet Information Server)(windows NT)和PWS(Personal WebServer)(windows 98)上。Unix下也有ChiliSoft的插件来支持ASP,但是ASP本身的功能有限,必须通过ASP+COM的组合来扩充,Unix下的COM实现起来非常困难JSP则没有以上缺陷,JSP可以通过SUN Java的Java Class和EJB获得规模支持,通过EJB/CORBA以及众多厂商的Application Server获得结构支持。三者中,JSP应该是未来发展的趋势。世界上一些大的电子商务解决方案提供商都采用JSP/Servlet。总的来说,ASP、PHP、JSP三者都有相当数量的支持者,而这三者也各有所长,在开发过程中,我们应该根据实际的需要来使用最合适的技术,本系统则采用较新的JSP技术,一方面JSP的安全性和跨平台性比较好,另一方面JSP的应用范围和前景更好,发展潜力更加广大。Currently in the development of domestic shopping systems, PHP and ASP technologies are most widely used. And because JSP is a relatively new technology, it is rarely used in China. However, in foreign countries, JSP is already a relatively popular technology, especially for e-commerce websites, which mostly use JSP. Because the existing technology has obvious deficiencies in security and cross-platform: First, PHP lacks scale support. Secondly, there is a lack of multi-layer structure support. For sites with heavy loads, there is only one solution: distributed computing. The database, application logic layer, and presentation logic layer are separated from each other, and the same layer can also be separated according to traffic to form a two-dimensional array, while PHP lacks this support. As mentioned above, the database interface support provided by PHP is not uniform, which makes it not suitable for use in e-commerce. ASP is a dynamic web page language developed by Microsoft, and it also inherits the consistent tradition of Microsoft products, that is, it can only run on Microsoft's server products, IIS (Internet Information Server) (windows NT) and PWS (Personal WebServer) (windows 98). Under Unix, there is also a ChiliSoft plug-in to support ASP, but ASP itself has limited functions and must be expanded through the combination of ASP+COM. COM under Unix is very difficult to implement. JSP does not have the above defects. JSP can pass SUN Java's Java Class and EJB obtains scale support, and obtains structure support through EJB/CORBA and Application Server of many vendors. Among the three, JSP should be the trend of future development. Some of the world's largest e-commerce solution providers use JSP/Servlet. Generally speaking, ASP, PHP, and JSP all have a considerable number of supporters, and these three also have their own strengths. During the development process, we should use the most appropriate technology according to actual needs. This system The newer JSP technology is adopted. On the one hand, JSP has better security and cross-platform performance. On the other hand, JSP has better application scope and prospects, and has a wider development potential.

在信息科技飞速发展的今天,信息技术正在渗透到社会的各个角落。各行各业正在插上信息化翅膀,得到前所未有的发展契机;人们的生活也受益于信息化的进步,变得越来越方便,越来越丰富多彩。Today, with the rapid development of information technology, information technology is penetrating into every corner of society. All walks of life are plugging in the wings of informatization and gaining unprecedented opportunities for development; people's lives are also benefiting from the progress of informatization, becoming more and more convenient and colorful.

随着物联网、云计算、移动互联网、大数据等新一代信息技术的快速发展,购物信息化进入“网上购物”时代。但是,网购的快捷方便的同时却带来了物流的等待问题,这样使得购物者的购物体验下降,所以基于地理位置的购物系统可以解决消费者可以及时的从周边的微小的商铺快速的购买到自己想要的商品,解决了物流带来的不必要的等待的麻烦。移动互联网领域的快速发展对更轻更小更快的智能移动硬件终端、更高效更稳定的软件操作系统和友好的用户界面提出了越来越高的要求,对各种基于主流移动操作系统的应用需求也越来越迫切。因此提出了一种Android平台下基于地理位置信息的购物系统来提高网上购物服务的效率和质量,促进网上消费业的健康发展。人们可以根据自己周边加盟网上的购物平台的商店,快速收集距离自己最近的商店或者超市,并且可以选择网上支付,然后可以选择自取或者派送,这样减少一些等待物流的时间,让消费者随时都可以购物随时得都可以享用到自己购买的商品,改善传统网上购物较低效率,传统网上购物由于距离远、物流慢等使得人们的购物体验较差。而本发明能够很好地解决上面的问题。With the rapid development of new-generation information technologies such as the Internet of Things, cloud computing, mobile Internet, and big data, shopping informatization has entered the era of "online shopping". However, the fast and convenient online shopping brings about the problem of waiting for logistics, which reduces the shopping experience of shoppers. Therefore, the shopping system based on geographic location can solve the problem that consumers can quickly purchase from the surrounding small shops to The goods you want solve the unnecessary waiting trouble caused by logistics. The rapid development of the mobile Internet field has put forward higher and higher requirements for lighter, smaller and faster smart mobile hardware terminals, more efficient and stable software operating systems, and friendly user interfaces. Application requirements are also becoming more and more urgent. Therefore, a shopping system based on geographic location information under the Android platform is proposed to improve the efficiency and quality of online shopping services and promote the healthy development of online consumer industry. People can quickly collect the nearest store or supermarket according to the stores around them that join the online shopping platform, and can choose to pay online, and then choose self-pickup or delivery, which reduces the time waiting for logistics and allows consumers to shop at any time You can shop and enjoy the products you buy at any time, improving the low efficiency of traditional online shopping. Traditional online shopping makes people's shopping experience poor due to long distances and slow logistics. And the present invention can well solve the above problems.

发明内容Contents of the invention

本发明目的在于针对上述现有技术的不足,提供了一种Android平台下基于地理位置信息的购物系统,该系统解决了周围小型商店的购物问题等,该系统实现了多种信息和服务资源的互联网购物功能,该系统将极大改善了消费者网上购物的体验,使购物与服务向着更加精细以及高质量的方向推进。The purpose of the present invention is to address the deficiencies of the above-mentioned prior art, and provide a shopping system based on geographic location information under the Android platform, which solves the shopping problem of small shops around, and realizes the integration of various information and service resources. Internet shopping function, the system will greatly improve the online shopping experience of consumers, and make shopping and services more refined and high-quality.

本发明解决其技术问题所采取的技术方案是:一种Android平台下基于地理位置信息的购物系统,该系统包括前台功能模块和后台功能模块。The technical solution adopted by the present invention to solve the technical problem is: a shopping system based on geographic location information under the Android platform, the system includes a front-end function module and a back-end function module.

本发明系统的前台功能模块包括商铺路线提示模块、支付模块和商品分享模块。The foreground functional modules of the system of the present invention include a store route prompt module, a payment module and a commodity sharing module.

商铺路线提示模块:通过商品与商家的匹配,利用LBS服务云平台,调用地图的位置与搜索功能,以用户为中心,在一定的地理位置的范围内显示具有该商品的商家,然后提供一种距离用户距离最近的商家,根据选定的商家然后匹配最近最方便的路线提示,方便用户选择购买路线。Store route prompt module: Through the matching of goods and merchants, using the LBS service cloud platform, calling the location and search function of the map, centering on the user, displaying the merchants with the commodity within a certain geographical location, and then providing a The merchant closest to the user will be matched with the nearest and most convenient route prompt according to the selected merchant, so that the user can choose the purchase route conveniently.

支付模块的功能是:提供商品的结算功能,在购物车里添加的商品然后提交订单后,会完成对总价的计算,并通过调用支付SDK集成,通过支付宝或微信或百度钱包的途径实现对订单的处理。The function of the payment module is: to provide the settlement function of the goods. After the goods are added in the shopping cart and then the order is submitted, the calculation of the total price will be completed, and the payment SDK integration will be called, and the payment will be realized through Alipay, WeChat or Baidu Wallet. Processing of orders.

商品分享模块的功能是:将自己选中的商品可以分享到社交的网络平台,扩大该商品的使用范围,即微信的朋友圈,qq空间,微博等。The function of the product sharing module is to share the selected product to the social network platform, and expand the scope of use of the product, that is, the circle of friends of WeChat, QQ space, Weibo, etc.

本发明系统的后台功能模块包括收货地址管理模块和安全校验管理模块。The backstage functional modules of the system of the present invention include a delivery address management module and a safety verification management module.

收货地址管理模块是在我的主界面,实现收件地址的管理,添加收货地址,并且可以对原有的收货地址进行修改,并且提供准确和完善的地理信息给用户,完成对地址的相关设置与管理等。The receiving address management module is in my main interface, which realizes the management of the receiving address, adds the receiving address, and can modify the original receiving address, and provides accurate and complete geographical information to the user to complete the address related settings and management.

安全校验管理模块是在用户登录模块中,通过api权限校验和app安全校验实现用户登录的安全管理,在注册模块中,通过采用获取短信验证码并校验验证码的方式完成用户的注册。The security verification management module is in the user login module to realize the security management of user login through api permission verification and app security verification. register.

进一步的,本发明系统是采用HTML5与原生android的页面交互,采用第三方库xUtils,okhttp,fresco,gson,picasso的调用,实现主界面、购物车以及支付功能,采用高层封装BaseAdapter的封装,OkHttp的封装,数据解析的封装。Further, the system of the present invention adopts HTML5 to interact with native android pages, adopts third-party library xUtils, okhttp, fresco, gson, picasso to call, realizes main interface, shopping cart and payment function, adopts the encapsulation of high-level encapsulation BaseAdapter, OkHttp Encapsulation, encapsulation of data parsing.

进一步的,本发明LBS服务云平台应用于客户端安卓手机上,通过HTTP协议实现客户端与服务器端的交互,然后以json数据解析实现数据传输,客户端通过网络请求实现对LBS云服务的地图搜索,定位功能调用。Further, the LBS service cloud platform of the present invention is applied to the Android mobile phone of the client, realizes the interaction between the client and the server through the HTTP protocol, and then realizes data transmission with json data analysis, and the client realizes the map search for the LBS cloud service through network requests , the positioning function is called.

进一步的,本发明系统将本地服务器部署到个人计算机上,采用MySQL数据库存储数据,采用直接将PowerDesigner中建模后产生的数据库文件导入MySQL数据库中,需要建立用户信息表,商品信息表,卖家位置信息表,买家位置信息表,使用Struts2、Spring、Hebenet系统架构搭建服务器端,将客户端的商家信息、商品信息、商家位置、用户位置的数据信息通过MySQL数据库传到服务器端,通过http接口实现JSON数据解析;服务器端负责接收执行客户端请求、数据库访问功能,而手机客户端承担发送请求命令,并将请求发送给服务器,以及向用户界面显示服务器返回的数据;Android系统提供无线联网接口,服务器与客户端通过无线网络进行数据的传输。Further, the system of the present invention deploys the local server on the personal computer, uses the MySQL database to store data, and directly imports the database file generated after modeling in PowerDesigner into the MySQL database, and needs to establish a user information table, a product information table, and a seller's location Information table, buyer location information table, use Struts2, Spring, Hebenet system architecture to build the server side, and transmit the client's merchant information, product information, merchant location, and user location data information to the server through the MySQL database, and realize it through the http interface JSON data analysis; the server is responsible for receiving and executing client requests and database access functions, while the mobile client is responsible for sending request commands, sending requests to the server, and displaying the data returned by the server to the user interface; the Android system provides a wireless networking interface, The server and the client transmit data through the wireless network.

进一步的,本发明系统包括HttpURLConnection和Apache HttpClient,采用OkHttp,OkHttp实现和java.net.HttpURLConnection一样的API;若使用ApacheHttpClient,OkHttp提供一个对应的okhttp-apache模块,使用OkHttp无需重写网络中的代码,从很多的常用连接问题中自动回复,若配置的服务器多个IP地址,当地一个IP连接失败的时候会自动尝试下一个IP,OkHttp处理服务器问题和SSL握手失败问题。Further, the system of the present invention includes HttpURLConnection and Apache HttpClient, adopts OkHttp, OkHttp realizes the same API as java.net.HttpURLConnection; if ApacheHttpClient is used, OkHttp provides a corresponding okhttp-apache module, and OkHttp does not need to rewrite the code in the network , Automatically reply from many common connection problems. If the configured server has multiple IP addresses, when a local IP connection fails, it will automatically try the next IP. OkHttp handles server problems and SSL handshake failure problems.

进一步的,本发明HTML5与原生的交互,原生的应用采用的语言有Object C(IOS)和java(Android),页面存放于本地,触屏版的网页应用采用的是html语言,受限制于Uiwebview,页面存放于服务器,半原生半Web的混合类应用是一种两者混合的app,采用C+html语言,也是受限制于Uiwebview。Further, HTML5 of the present invention interacts with original, and the language that original application adopts has Object C (IOS) and java (Android), and the page is stored locally, and what the webpage application of touch-screen version adopts is html language, is restricted by Uiwebview , the page is stored on the server, and the half-native and half-Web hybrid application is a kind of app that mixes the two. It uses C+html language and is also limited by Uiwebview.

进一步的,本发明系统利用网路请求实现客户端与LBS服务云平台交互,用开源的地图开发平台与资源实现地图的搜索,位置信息的地位,借助互联网或无线网络,在用户的手机客户端,随时调用支付接口;根据距离最近的商店直接在主界面的地图中点击进入,然后打开该商店的服务界面,让用户根据自己搜索到的商品通过距离的筛选直接呈现用面前,并且快速的完成商品的支付功能。Furthermore, the system of the present invention uses network requests to realize the interaction between the client and the LBS service cloud platform, and uses the open-source map development platform and resources to realize the search of the map and the status of the location information. , call the payment interface at any time; according to the nearest store, click directly on the map of the main interface to enter, and then open the service interface of the store, allowing users to directly present the products they have searched for by filtering the distance in front of them, and quickly complete the The payment function of the product.

有益效果:Beneficial effect:

1、本发明Android平台下基于的周围购物app的开发实例解决周围小型商店的购物问题,可以从周边最近的小型商铺搜索到自己想购买的商品,这样节省了大量的资源和物流等待的时间,让消费者随时随地就可以马上享用到自己购买到的商品,显示了很强的传统网购所没有的先进性,生活在小型超市,微商周边的居民在日常生活中需要及时得到生活的必需品,自己又无法离开家门去购买,为了解决居民的燃眉之急,该系统可以让最近的微商派送居民所需的日常所需品,保证了居民的正常的生活顺利进行,显示了很强的实用性。1, the development example of the surrounding shopping app based on the Android platform of the present invention solves the shopping problem of small shops around, and can search for the commodities that one wants to buy from the nearest small shops around, which saves a lot of resources and logistics waiting time, Allowing consumers to enjoy the products they purchased immediately anytime, anywhere, shows a strong advanced nature that traditional online shopping does not have. Living in small supermarkets, residents around the micro-business need to get the necessities of life in a timely manner in daily life. I can’t leave the house to buy. In order to solve the urgent needs of the residents, the system allows the nearest micro-businesses to deliver the daily necessities needed by the residents, ensuring the smooth progress of the normal life of the residents, showing strong practicability.

2、本发明Android平台基于周围位置信息的购物系统能够为消费者提供丰富的高质量服务,如丰富商品信息服务、随时的移动接入服务、多样化的交互体验以及智能服务和智能移动代理等,将极大改善旅游者的消费者网上购物的体验,使购物与服务向着更加精细以及高质量的方向推进,使得消费者可以感受到便捷,快速的网上购物的新体验。2. The shopping system based on the surrounding location information on the Android platform of the present invention can provide consumers with rich high-quality services, such as rich commodity information services, mobile access services at any time, diversified interactive experiences, intelligent services and intelligent mobile agents, etc. , will greatly improve the online shopping experience of tourists and consumers, and make shopping and services more sophisticated and high-quality, so that consumers can feel the new experience of convenient and fast online shopping.

3、本发明实现了重复代码的复用,使开发此类应用程序变得简单,java代码封装,可以把一些经常使用或者所使用频率较高的代码封装起来,以后只用的时候就使用这个曾经封装好的代码集合,直接引用,这样就可以免去再次写这样的代码而花费时间,很好地简化了开发过程,提高了开发效率。3. The present invention realizes the reuse of repeated codes, making it easy to develop such applications. Java code encapsulation can encapsulate some frequently used or frequently used codes, and use this code only when it is used in the future. The packaged code collection is directly referenced, which saves the time spent on writing such code again, simplifies the development process, and improves development efficiency.

附图说明Description of drawings

图1为本发明的系统架构图。。FIG. 1 is a system architecture diagram of the present invention. .

图2为本发明的服务端总体框图。Fig. 2 is an overall block diagram of the server of the present invention.

具体实施方式detailed description

下面结合说明书附图对本发明创造作进一步的详细说明。The invention will be described in further detail below in conjunction with the accompanying drawings.

如图1所示,一种Android平台下基于地理位置信息的购物系统,该系统的前台功能模块包括会员模块;购物车管理模块;订单管理模块;商铺路线提示模块;支付模块;商品分享模块;前台提供商品关键字搜索功能,可以方便顾客查找商品。As shown in Figure 1, a shopping system based on geographic location information under an Android platform, the front-end functional modules of the system include a member module; a shopping cart management module; an order management module; a shop route prompt module; a payment module; a commodity sharing module; The front desk provides a product keyword search function, which can facilitate customers to find products.

当用户进入商城首页时,点击注册,进入会员注册,填写会员注册资料,如果顾客对信息填写错误将不能完成注册。若已经注册成功的话,用户可以直接点击登录,无需再重新注册。When the user enters the homepage of the mall, click Register to enter the member registration and fill in the member registration information. If the customer fills in the wrong information, the registration cannot be completed. If the registration is successful, the user can directly click to log in without re-registering.

购物车管理模块shopping cart management module

当用户进入商城选购商品时,可以从商品列表中选择自己需要的商品,可以查看商品详情,可以使用购物车,它提供了不同的功能,例如查看购物车物品,确认订单信息(即包括查看商品的数量,市场价格和商品总金额),提交订单等功能。另外如果顾客不想购买商品可以点击清空购物车,也可以继续购物进入下一步操作。When the user enters the mall to buy products, he can select the products he needs from the product list, view product details, and use the shopping cart, which provides different functions, such as viewing shopping cart items, confirming order information (including viewing The quantity of goods, the market price and the total amount of goods), order submission and other functions. In addition, if the customer does not want to purchase the product, he can click to clear the shopping cart, or he can continue shopping and go to the next step.

订单管理模块Order Management Module

在此模块中,主要提供订单信息,包括订单编号、金额、下单日期、订单状态等,这样既可以保证顾客购买的商品不会出错,同时可以帮助商城管理人员方便查看和管理。另外用户可以修改订单信息。In this module, order information is mainly provided, including order number, amount, order date, order status, etc., so as to ensure that the products purchased by customers will not make mistakes, and at the same time, it can help mall managers to view and manage them conveniently. In addition, users can modify order information.

商铺路线提示模块Shop route prompt module

通过商品与商家的匹配,利用LBS服务云平台,调用地图的位置与搜索功能,以用户为中心,在一定的地理位置的范围内显示具有该商品的商家,然后提供一种距离用户距离最近的商家,根据选定的商家然后匹配最近最方便的路线提示,方便用户选择购买路线;Through the matching of goods and merchants, using the LBS service cloud platform, calling the location and search function of the map, centering on the user, displaying the merchants with the commodity within a certain geographical location, and then providing a kind of information that is closest to the user Merchants, according to the selected merchants, then match the nearest and most convenient route prompts, so that users can choose the purchase route;

支付模块payment module

在此模块中,主要提供商品的结算功能,在购物车里添加的商品然后提交订单后,会完成对总价的计算,并通过调用支付SDK集成,通过(即支付宝,微信,百度钱包)等途径实现对订单的处理。In this module, it mainly provides the settlement function of the goods. After adding the goods in the shopping cart and submitting the order, the calculation of the total price will be completed, and integrated by calling the payment SDK, through (ie Alipay, WeChat, Baidu Wallet), etc. The way to realize the processing of the order.

商品分享模块Commodity sharing module

在此模块中,可以将自己选中的商品可以分享到社交的网络平台,扩大该商品的使用范围,例如微信的朋友圈,qq空间,微博等,非常有利于商品的宣传。In this module, you can share your selected products on social network platforms to expand the scope of use of the product, such as WeChat Moments, QQ Space, Weibo, etc., which is very conducive to the promotion of products.

本发明系统的后台功能模块包括商品分类管理模块;商品管理模块;收货地址管理模块;安全校验管理模块;系统用户管理模块;安全退出模块。The background functional modules of the system of the present invention include a commodity classification management module; a commodity management module; a delivery address management module; a security verification management module; a system user management module; and a safe exit module.

商品分类管理模块Commodity classification management module

主要实现新增商品分类,和分类描述功能,商城管理人员通过分类管理实现商品的分类,同时可以增加、修改、删除商品信息。It mainly implements new commodity classification and classification description functions. Mall managers realize commodity classification through classification management, and can add, modify, and delete commodity information at the same time.

商品管理模块Commodity Management Module

它在实现了商品分类管理的基础上对商品信息进行了更为细致的描述,增加了商品的型号、图片、有无会员价格、生产厂家和日期等功能,它也可以删除修改商品,同时在删除商品的时候可以自动删除商品图片,而修改时上传图片可以选择是否覆盖原有图片,大大节约了空间。It provides a more detailed description of commodity information on the basis of realizing commodity classification management, and adds functions such as commodity model, picture, membership price, manufacturer and date, etc. It can also delete and modify commodities, and at the same time When you delete a product, you can automatically delete the product picture, and you can choose whether to overwrite the original picture when uploading the picture when modifying, which greatly saves space.

收货地址管理模块Delivery address management module

在我的主界面,可以实现收件地址的管理,添加收货地址,并且可以对原有的收货地址进行修改,并且提供准确和完善的地理信息给用户,完成对地址的相关设置与管理。In my main interface, you can realize the management of the receiving address, add the receiving address, and modify the original receiving address, and provide accurate and complete geographical information to the user, and complete the related setting and management of the address .

安全校验管理模块Security check management module

在用户登录模块中,通过api权限校验和app安全校验实现用户登录的安全管理,在注册模块中,通过采用获取短信验证码并校验验证码的方式完成用户的注册。In the user login module, the security management of user login is realized through api permission verification and app security verification. In the registration module, user registration is completed by obtaining SMS verification code and verifying the verification code.

系统用户管理模块System User Management Module

系统用户管理模块提供了对系统用户的管理,以及用户应遵守的条约和权益。The system user management module provides the management of system users, as well as the treaties and rights that users should abide by.

安全退出模块Safe Exit Module

安全退出模块可以提供用户在使用完成之后安全的退出。The safe logout module can provide users with safe logout after use.

本发明系统应用于综合各种信息资源,包括服务器端,客户端,云服务器端。The system of the present invention is applied to synthesize various information resources, including server end, client end, and cloud server end.

第一部分的服务器端涉及javaweb核心技术,采用了主流的SSH框架,将本地的服务器部署到个人计算机上。The server side of the first part involves javaweb core technology, adopts the mainstream SSH framework, and deploys the local server to the personal computer.

第二部分的客户端采用android 5.0的最新的技术,包括Toolbar,RecyclerView,CardView,TabLayout,SwipeRefreshLayout等技术,还有采用HTML5实现与原生android的页面交互,采用第三方库(xUtils,okhttp,fresco,gson,picasso等)的调用实现主界面以及购物车以及支付等功能,采用高层封装(BaseAdapter的封装,OkHttp的封装,数据解析的封装等),进一步简化代码,提高效率。The second part of the client adopts the latest technology of android 5.0, including Toolbar, RecyclerView, CardView, TabLayout, SwipeRefreshLayout and other technologies, and uses HTML5 to realize page interaction with native android, using third-party libraries (xUtils, okhttp, fresco, gson, picasso, etc.) to realize the main interface, shopping cart and payment functions, and adopt high-level packaging (BaseAdapter packaging, OkHttp packaging, data analysis packaging, etc.), to further simplify the code and improve efficiency.

第三部分LBS.云服务应用将客户端安卓手机上,通过HTTP协议实现客户端与服务器端的交互,然后以json数据解析实现数据传输,客户端通过网络请求实现对LBS云服务的地图搜索,定位等功能调用。The third part of the LBS. cloud service application is to connect the client to the Android mobile phone, realize the interaction between the client and the server through the HTTP protocol, and then realize the data transmission by parsing the json data, and the client realizes the map search and positioning of the LBS cloud service through the network request and other function calls.

本发明利用关键的前端和后端的Android相关技术,实现预期的功能需求,具体包括如下:The present invention utilizes key front-end and back-end Android-related technologies to realize expected functional requirements, specifically including as follows:

第一:利用MySQL,sql server或者Oracle数据库存储信息数据,直接采用PowerDesigner工具进行数据建模,将建好的用户信息表,商品信息表,商家信息表,商家位置信息表,用户位置信息表,二维码表导入到数据库中,实现客户端数据存储。First: use MySQL, sql server or Oracle database to store information data, directly use PowerDesigner tool for data modeling, and create user information table, product information table, business information table, business location information table, user location information table, The QR code table is imported into the database to realize client data storage.

第二:实现客户端与服务器端的交互,采用HTTP协议交互,主要是两种HttpURLConnection和Apache HttpClient,两者都支持HTTPS,流的上传和下载,配置超时,IPv6和连接池,基于这两者传统的Android的网络请求技术Google公司推行一种volley的框架,Volley特别适合数据量不大但是通信频繁的场景,能使网络通信更快,更简单,更健壮。从而更有效的实现http的请求的需求。Second: Realize the interaction between the client and the server, using the HTTP protocol to interact, mainly two kinds of HttpURLConnection and Apache HttpClient, both of which support HTTPS, stream upload and download, configuration timeout, IPv6 and connection pool, based on the traditions of these two Android's network request technology Google promotes a volley framework. Volley is especially suitable for scenarios with small data volume but frequent communication, which can make network communication faster, simpler and more robust. In order to more effectively realize the requirements of http requests.

第三:客户端的用户界面的设计,根据业务要求,在客户端要实现首页商品分类,用FragmenTabHost实现底部菜单,使用RecyclerView实现瀑布流布局,取代传统的ListView布局,从而实现酷炫的广告轮播,使用okhttp实现主页商品分类重构。利用Fresco实现从网络,本地文件系统,本地资源加载图片,再利用SwipeRefreshLayout组件实现热门商品列表的下拉刷新,上拉加载的功能。自定义购物车的功能,实现购物商品的选择和总价的统计,利用分页工具的类封装实现商品列表的list与grid模式切换,使用TabLayout实现商品列表的排序功能。使用Native与HTML5的交互实现商品详情的功能,利用ShareSDK组件实现商品分享的功能。用户登录的设计要完成API权限的校验和App安全的校验,注册界面通过使用短信SDK集成实现短信验证码和校验验证码和注册的完成功能。支付界面通过使用支付SDK集成完成订单的提交和支付(支付宝,微信,百度钱包)订单的功能。我的界面主要是实现收货地址管理,添加收货地址,我的订单,我的收藏的功能。Third: The design of the user interface of the client. According to the business requirements, the client needs to realize the product classification on the home page, use FragmenTabHost to realize the bottom menu, and use RecyclerView to realize the waterfall flow layout, replacing the traditional ListView layout, so as to realize the cool advertisement carousel , use okhttp to realize the reconstruction of home page commodity classification. Use Fresco to load pictures from the network, local file system, and local resources, and then use the SwipeRefreshLayout component to realize the pull-down refresh and pull-up loading functions of the popular product list. Customize the function of the shopping cart, realize the selection of shopping items and the statistics of the total price, use the class encapsulation of the paging tool to switch between the list and grid modes of the product list, and use TabLayout to realize the sorting function of the product list. Use the interaction between Native and HTML5 to realize the function of product details, and use the ShareSDK component to realize the function of product sharing. The design of user login needs to complete the verification of API permissions and App security. The registration interface realizes the SMS verification code and verification verification code and registration completion functions through the integration of SMS SDK. The payment interface integrates the functions of order submission and payment (Alipay, WeChat, Baidu Wallet) by using the payment SDK. My interface is mainly to realize delivery address management, add delivery address, my order, and my favorite functions.

第四:服务器端采用J2EE项目中Spring+Struts+Hibernate(SSH)系统框架,Spring是一个轻量级的控制反转(IoC)和面向切面(AOP)的容器框架,Struts对Model,View和Controller都提供了对应的组件。Hibernate是一个开放源代码的对象关系映射框架,它对JDBC进行了非常轻量级的对象封装,可以应用在任何使用JDBC的场合,可以在Servlet/JSP的Web应用中使用。也可以在应用EJB的J2EE架构中取代CMP,完成数据持久化的重任。将客户端的(商家信息,商品信息,商家位置,用户位置)数据信息等通过MySQL数据库传到服务器,再通过http接口实现JSON数据解析。服务器端主要负责接收执行客户端请求、数据库访问功能,而手机客户端主要承担发送请求命令,并将请求发送给服务器,以及向用户界面显示服务器返回的数据。Android系统提供无线联网接口,服务器与客户端通过无线网络进行数据的传输。Fourth: The server side adopts the Spring+Struts+Hibernate (SSH) system framework in the J2EE project. Spring is a lightweight inversion of control (IoC) and aspect-oriented (AOP) container framework. Struts supports Model, View and Controller Corresponding components are provided. Hibernate is an open source object-relational mapping framework. It encapsulates JDBC with a very lightweight object. It can be applied to any occasion that uses JDBC, and can be used in Servlet/JSP Web applications. It can also replace CMP in the J2EE architecture using EJB to complete the important task of data persistence. The client's (business information, product information, business location, user location) data information is transmitted to the server through the MySQL database, and then the JSON data analysis is realized through the http interface. The server is mainly responsible for receiving and executing client requests and database access functions, while the mobile client is mainly responsible for sending request commands, sending requests to the server, and displaying the data returned by the server to the user interface. The Android system provides a wireless networking interface, and the server and the client transmit data through the wireless network.

第五:利用网路请求实现客户端与LBS.云服务端的交互,首先是确定移动设备或用户所在的地理位置;其次是提供与位置相关的各类信息服务。当前有百度地图,高德地图,腾讯地图等开源的地图开发服务平台,各自有各自的优势,利用开源的额地图开发平台与资源实现地图的搜索,位置信息的地位,地理位置的编码的主要功能,主要关键技术有空间运算,地理数据的存储,业务数据的存储。LBS就是要借助互联网或无线网络,在固定用户或移动用户之间,完成定位和服务两大功能。Fifth: Use network requests to realize the interaction between the client and the LBS.Cloud server. First, determine the geographic location of the mobile device or user; second, provide various location-related information services. Currently, there are open source map development service platforms such as Baidu Map, Gaode Map, and Tencent Map, each of which has its own advantages. Using open source map development platforms and resources to realize map search, location information status, and geographic location coding are mainly Functions, the main key technologies include spatial computing, geographic data storage, and business data storage. LBS is to use the Internet or wireless network to complete the two functions of positioning and service between fixed users or mobile users.

如图2所示,服务端总体框图具体工作方式为:手机客户端的用户界面通过网络的请求,并将请求发送给服务器端,然后服务器端进行后台的处理,然后从LBS云服务器端通过网络实现数据资源的获取以及GPS+定位还有商铺最短路线(通过地理位置距离比对)的功能然后将其信息资源反馈到服务器端的后台处理,后台的数据获取模块将实现和处理自我定位和商铺搜索的功能,数据处理模块将实现商铺的最短路线的功能,后台处理的数据可以通过sd卡,文件实现数据的存储以及通过数据库(MySQL)的访问,而客户端的商品的文字,图片,价格的信息可以通过Internet实现与后台的交互,用户界面的(商家的信息,商品的信息,商家的位置,用户的位置)等数据信息通过MySQL数据库传到服务器端,通过http接口实现json数据解析,然后服务器端对数据进行处理然后再反馈到客户端,最后在客户端的用户界面实现商品介绍,路线提示支付平台等功能。As shown in Figure 2, the specific working method of the overall block diagram of the server is as follows: the user interface of the mobile client sends a request through the network, and sends the request to the server, and then the server performs background processing, and then implements it from the LBS cloud server through the network Acquisition of data resources, GPS+ positioning, and the function of the shortest route of the store (by geographical distance comparison) and then feed back its information resources to the background processing on the server side. The data acquisition module in the background will realize and process the functions of self-positioning and store search , the data processing module will realize the function of the shortest route of the store. The data processed in the background can be stored and accessed through the database (MySQL) through sd cards and files, and the text, pictures and price information of the client can be passed through The Internet realizes the interaction with the background, and the data information of the user interface (business information, commodity information, business location, user location) and other data information is transmitted to the server through the MySQL database, and the json data analysis is realized through the http interface, and then the server side The data is processed and then fed back to the client. Finally, the user interface of the client realizes functions such as product introduction, route prompt and payment platform.

本发明在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步,利用当先最新Android 5.0的关键核心技术(Toolbar,RecyclerView,CardView,TabLayout,SwipeRefreshLayout)与控件进一步的封装,便于很好的进行编译与功能实现。Further, using the key core technologies of the latest Android 5.0 (Toolbar, RecyclerView, CardView, TabLayout, SwipeRefreshLayout) and further packaging of controls, it is easy to compile and realize functions well.

进一步,取代传统的Android网络请求的方式(HttpURLConnection和ApacheHttpClient)采用最新的OkHttp,OkHttp实现了几乎和java.net.HttpURLConnection一样的API,如果使用了Apache HttpClient,OkHttp也提供一个对应的okhttp-apache模块,使用OkHttp无需重写网络中的代码,还可以从很多的常用连接问题中自动回复,如果配置的服务器多个IP地址,当地一个IP连接失败的时候会自动尝试下一个IP,OkHttp还处理服务器问题和SSL握手失败问题.Further, instead of the traditional Android network request method (HttpURLConnection and ApacheHttpClient), the latest OkHttp is adopted. OkHttp implements almost the same API as java.net.HttpURLConnection. If Apache HttpClient is used, OkHttp also provides a corresponding okhttp-apache module , using OkHttp does not need to rewrite the code in the network, and can automatically reply from many common connection problems. If the configured server has multiple IP addresses, when a local IP connection fails, it will automatically try the next IP. OkHttp also handles the server problem and the SSL handshake failure problem.

进一步,HTML5与原生的交互,原生的应用(Native App)采用的语言有Object C(IOS)和java(Android),页面存放于本地。触屏版的网页应用(Web App)采用的是html语言,受限制于Uiwebview,页面存放于服务器。半原生半Web的混合类应用(HyBirdApp)是一种两者混合的app,采用C+html语言,也是受限制于Uiwebview。Further, for the interaction between HTML5 and native, native applications (Native App) use languages such as Object C (IOS) and java (Android), and the pages are stored locally. The touch screen version of the web application (Web App) uses the html language, which is limited by Uiwebview, and the pages are stored on the server. The half-native and half-Web hybrid application (HyBirdApp) is a hybrid app that uses C+html language and is also limited by Uiwebview.

进一步,在软件开发过程中,我们大部分需要写很多代码,尤其是项目较大的时候,代码越多就意味着程序越大,比如我们开发某一类应用程序时,会发现这一类应用程序,会有大量的代码是重复的,这时,就需要我们优化设计并采用某种方式,实现重复代码的复用,使开发此类应用程序变得简单,java代码封装,我们可以把一些经常使用或者所使用频率较高的代码封装起来,以后只用的时候我们就使用这个我们曾经封装好的代码集合,直接引用,这样就可以免去再次写这样的代码而花费时间,提高开发效率。比如在JavaWeb编程过程中,经常使用的Struts和Spring等框架,就可以大大简化我们的开发过程,提高开发效率。Furthermore, in the software development process, most of us need to write a lot of code, especially when the project is large, the more code means the larger the program, for example, when we develop a certain type of application, we will find that this type of application program, there will be a lot of repeated codes. At this time, we need to optimize the design and adopt a certain method to realize the reuse of repeated codes, so as to make it easy to develop such applications. Java code encapsulation, we can put some The frequently used or frequently used codes are encapsulated, and when we only use them in the future, we will use this code collection that we have packaged and directly reference it, so that we can avoid the time spent on writing such codes again and improve development efficiency . For example, in the JavaWeb programming process, frequently used frameworks such as Struts and Spring can greatly simplify our development process and improve development efficiency.

以下结合附图对本发明的原理和特征进行描述,所举实例只用于解释本发明,并非用于限定本发明的范围。The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

Android平台下基于地理位置信息购物系统具有以下特点和优势:The shopping system based on geographic location information under the Android platform has the following characteristics and advantages:

当今网购的快捷方便的同时却带来了物流的等待问题,这样使得购物者的购物体验下降,所以基于地理位置的购物系统可以解决消费者可以及时的从周边的微小的商铺快速的购买到自己想要的商品,解决了物流带来的不必要的等待的麻烦,使得手机用户可以快速的方便的获得到自己想要的商品。Today's online shopping is fast and convenient, but at the same time it brings the problem of waiting for logistics, which reduces the shopping experience of shoppers. Therefore, the shopping system based on geographical location can solve the problem that consumers can quickly buy from the surrounding small shops to themselves. Wanted goods solve the unnecessary waiting trouble caused by logistics, so that mobile phone users can quickly and conveniently obtain the goods they want.

本发明针对Android平台下基于的周围购物app的开发实例解决周围小型商店的购物问题,该系统可以从周边最近的小型商铺搜索到自己想购买的商品,这样节省了大量的资源和物流等待的时间,让消费者随时随地就可以马上享用到自己购买到的商品,显示了很强的传统网购所没有的先进性,生活在小型超市,微商周边的居民在日常生活中需要及时得到生活的必需品,自己又无法离开家门去购买,为了解决居民的燃眉之急,该系统可以让最近的微商派送居民所需的日常所需品,保证了居民的正常的生活顺利进行,显示了很强的实用性。Android平台下基于周围位置信息的购物系统为消费者提供丰富的高质量服务,如丰富商品信息服务、随时的移动接入服务、多样化的交互体验以及智能服务和智能移动代理等,将极大改善旅游者的消费者网上购物的体验,使购物与服务向着更加精细以及高质量的方向推进,使得消费者可以感受到便捷,快速的网上购物的新体验。The present invention solves the shopping problem of the surrounding small stores based on the development example of the surrounding shopping app under the Android platform. The system can search for the commodities you want to buy from the nearest small stores around, which saves a lot of resources and logistics waiting time. , so that consumers can immediately enjoy the goods they buy anytime, anywhere, showing a strong advanced nature that traditional online shopping does not have. Living in small supermarkets, residents around micro-businesses need to get daily necessities in time , I can’t leave the house to buy. In order to solve the urgent needs of the residents, the system allows the nearest micro-businesses to deliver the daily necessities needed by the residents, ensuring the smooth progress of the normal life of the residents, showing strong practicality . The shopping system based on surrounding location information under the Android platform provides consumers with rich and high-quality services, such as rich product information services, mobile access services at any time, diversified interactive experiences, intelligent services and intelligent mobile agents, etc. Improve the online shopping experience of tourists and consumers, make shopping and services more refined and high-quality, so that consumers can feel the new experience of convenient and fast online shopping.

本发明将LBS云服务系统与Android的平台下的购物的开发整合,实现了地图开发与购物开发两大主流的开发融合在一起,是的信息资源的整合力度更加广泛,功能体验更加丰富。The invention integrates the LBS cloud service system and the development of shopping under the Android platform, and realizes the integration of the two mainstream developments of map development and shopping development, so that the integration of information resources is more extensive and the functional experience is more abundant.

本发明可以在移动手机客户端通过丰富的网上购物信息资源的选择自己想要的商品完成网上购物,突破了以往传统实体店购物单一,不便利的局限。The present invention can complete online shopping by selecting desired commodities through rich online shopping information resources on the mobile phone client, breaking through the limitation of single and inconvenient shopping in traditional physical stores in the past.

本发明可以在以用户为中心一个区域进行位置的地位搜索功能,然后根据最短路线提供用户一个最佳的购买路径,方便了消费者的同时大大地减少论文物流等待的功能,克服了网上购物虽然便利的购物但是物流较慢问题。The present invention can perform position search function in an area centered on the user, and then provide the user with an optimal purchase path according to the shortest route, which is convenient for consumers and greatly reduces the waiting function of paper logistics, and overcomes the need for online shopping. Convenient shopping but slow logistics problem.

本发明可以提供消费者周边一些小的超市,微商的商品信息,使得消费者不用出门就可以随时随地地掌握商品的价格的信息,大大地提高了消费者对互联网信息的掌握,更加便于制定购物的方案和时机。The present invention can provide commodity information of some small supermarkets and micro-businesses around consumers, so that consumers can grasp the price information of commodities anytime and anywhere without going out, greatly improving consumers' grasp of Internet information, and making it easier to formulate The scheme and timing of shopping.

本发明可以使得传统的生活用品信息及时的反馈到周围的生活的居民的手中。然后让周围的生活的居民可以在急需简单的生活用品的时候,可以最快的选择出合适的路径然后以最快最省的方式完成对生活用品的需求,改变了以往体系能力不足,无法提供复杂服务的状况。The invention can make the traditional daily necessities information be fed back to the hands of the surrounding residents in time. Then, when the residents living around are in urgent need of simple daily necessities, they can quickly choose the appropriate path and complete the demand for daily necessities in the fastest and most economical way, changing the lack of capacity of the previous system that could not provide The status of complex services.

本发明将为超市的经营者、微型的商家一个更加好的互联网环境,使得他们比传统的经营者更加有优势,更加紧随信息时代的发展,带动这些微型商家的发展,使得他们在互联网+的时代更加有竞争力,使得他们不被在网络购物快速发展的大环境下所淘汰,使得他们也有一席之地,这将促进整个社会信息化的发展,促进信息化的社会经济的发展。The present invention will provide a better Internet environment for supermarket operators and micro-businesses, making them more advantageous than traditional operators, and more closely following the development of the information age, driving the development of these micro-businesses so that they can be on the Internet+ The era is more competitive, so that they will not be eliminated in the rapid development of online shopping environment, so that they also have a place, which will promote the development of the entire social information, and promote the development of information-based social economy.

本发明基于Android平台下的周围购物系统,综合各种信息资源,利用基础的服务接口,根据具体业务逻辑进行整合,为用户提供具体的服务。分别是:(1)整体架构的设计,该系统的本地服务器部署到个人计算机上,LBS应用客户端安装到Android手机上。传输协议类采用HTTP协议,数据类以JSON格式进行传输。The present invention is based on the surrounding shopping system under the Android platform, integrates various information resources, uses the basic service interface, integrates according to specific business logic, and provides users with specific services. They are: (1) The design of the overall architecture, the local server of the system is deployed on the personal computer, and the LBS application client is installed on the Android mobile phone. The transmission protocol class adopts the HTTP protocol, and the data class is transmitted in JSON format.

(2)数据库设计,用MySQL数据库来存储数据,采用直接将PowerDesigner中建模后产生的数据库文件导入MySQL数据库中,需要建立用户信息表,商品信息表,卖家位置信息表,买家位置信息表。(2) Database design, use MySQL database to store data, and directly import the database files generated in PowerDesigner into MySQL database after modeling. It is necessary to establish user information tables, product information tables, seller location information tables, and buyer location information tables. .

(3)服务端设计:Struts2、Spring、Hebenet(SSH)系统架构搭建服务器端,将客户端的(商家信息,商品信息,商家位置,用户位置)数据信息等通过MySQL数据库传到服务器端,通过http接口实现JSON数据解析。服务器端主要负责接收执行客户端请求、数据库访问功能,而手机客户端主要承担发送请求命令,并将请求发送给服务器,以及向用户界面显示服务器返回的数据。Android系统提供无线联网接口,服务器与客户端通过无线网络进行数据的传输。(3) Server-side design: Struts2, Spring, and Hebenet (SSH) system architecture to build the server-side, and transmit the client-side (business information, commodity information, business location, user location) data information to the server-side through the MySQL database. The interface implements JSON data parsing. The server is mainly responsible for receiving and executing client requests and database access functions, while the mobile client is mainly responsible for sending request commands, sending requests to the server, and displaying the data returned by the server to the user interface. The Android system provides a wireless networking interface, and the server and the client transmit data through the wireless network.

(4)客户端设计:用的开发操作系统环境为Windows 7,采用Ecl ipse或者Androidstudio作为开发工具,实现用户登录与注册,商品查询,商品地图。(4) Client design: The development operating system environment used is Windows 7, and Eclipse or Androidstudio is used as the development tool to realize user login and registration, product query, and product map.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

Claims (7)

1.一种Android平台下基于地理位置信息的购物系统,所述系统包括前台功能模块和后台功能模块,其特征在于:所述系统的前台功能模块包括商铺路线提示模块、支付模块和商品分享模块;1. a shopping system based on geographic location information under an Android platform, the system includes a front desk function module and a background function module, it is characterized in that: the front desk function module of the system includes a store route prompt module, a payment module and a commodity sharing module ; 商铺路线提示模块:通过商品与商家的匹配,利用LBS服务云平台,调用地图的位置与搜索功能,以用户为中心,在一定的地理位置的范围内显示具有该商品的商家,然后提供一种距离用户距离最近的商家,根据选定的商家然后匹配最近最方便的路线提示,方便用户选择购买路线;Store route prompt module: Through the matching of goods and merchants, using the LBS service cloud platform, calling the location and search function of the map, centering on the user, displaying the merchants with the commodity within a certain geographical location, and then providing a The merchant closest to the user will be matched with the nearest and most convenient route prompt according to the selected merchant, so that the user can choose the purchase route; 支付模块的功能是:提供商品的结算功能,在购物车里添加的商品然后提交订单后,会完成对总价的计算,并通过调用支付SDK集成,通过支付宝或微信或百度钱包的途径实现对订单的处理;The function of the payment module is: to provide the settlement function of the goods. After the goods are added in the shopping cart and then the order is submitted, the calculation of the total price will be completed, and the payment SDK integration will be called, and the payment will be realized through Alipay, WeChat or Baidu Wallet. processing of orders; 商品分享模块的功能是:将自己选中的商品可以分享到社交的网络平台,扩大该商品的使用范围,即微信的朋友圈,qq空间,微博;The function of the product sharing module is: to share the selected product to the social network platform, and to expand the scope of use of the product, that is, the circle of friends of WeChat, QQ space, Weibo; 所述系统的后台功能模块包括收货地址管理模块和安全校验管理模块;The background functional modules of the system include a delivery address management module and a security verification management module; 收货地址管理模块是在我的主界面,实现收件地址的管理,添加收货地址,并且可以对原有的收货地址进行修改,并且提供准确和完善的地理信息给用户,完成对地址的相关设置与管理;The receiving address management module is in my main interface, which realizes the management of the receiving address, adds the receiving address, and can modify the original receiving address, and provides accurate and complete geographical information to the user to complete the address related settings and management; 安全校验管理模块是在用户登录模块中,通过api权限校验和app安全校验实现用户登录的安全管理,在注册模块中,通过采用获取短信验证码并校验验证码的方式完成用户的注册。The security verification management module is in the user login module to realize the security management of user login through api permission verification and app security verification. register. 2.根据权利要求1所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述系统采用HTML5与原生android的页面交互,采用第三方库xUtils,okhttp,fresco,gson,picasso的调用,实现主界面、购物车以及支付功能,采用高层封装BaseAdapter的封装,OkHttp的封装,数据解析的封装。2. the shopping system based on geographical location information under a kind of Android platform according to claim 1, is characterized in that: described system adopts HTML5 and native android page interaction, adopts third-party library xUtils, okhttp, fresco, gson, The call of picasso realizes the main interface, shopping cart and payment functions, and uses high-level encapsulation of BaseAdapter encapsulation, OkHttp encapsulation, and data parsing encapsulation. 3.根据权利要求1所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述LBS服务云平台应用于客户端安卓手机上,通过HTTP协议实现客户端与服务器端的交互,然后以json数据解析实现数据传输,客户端通过网络请求实现对LBS云服务的地图搜索,定位功能调用。3. the shopping system based on geographic location information under a kind of Android platform according to claim 1, is characterized in that: described LBS service cloud platform is applied on client Android mobile phone, realizes the interaction of client and server end by HTTP protocol , and then implement data transmission with json data parsing, and the client implements map search and positioning function calls for LBS cloud services through network requests. 4.根据权利要求1所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述系统将本地服务器部署到个人计算机上,采用MySQL数据库存储数据,采用直接将PowerDesigner中建模后产生的数据库文件导入MySQL数据库中,需要建立用户信息表,商品信息表,卖家位置信息表,买家位置信息表,使用Struts2、Spring、Hebenet系统架构搭建服务器端,将客户端的商家信息、商品信息、商家位置、用户位置的数据信息通过MySQL数据库传到服务器端,通过http接口实现JSON数据解析;服务器端负责接收执行客户端请求、数据库访问功能,而手机客户端承担发送请求命令,并将请求发送给服务器,以及向用户界面显示服务器返回的数据;Android系统提供无线联网接口,服务器与客户端通过无线网络进行数据的传输。4. the shopping system based on geographic location information under a kind of Android platform according to claim 1, is characterized in that: described system deploys local server on the personal computer, adopts MySQL database to store data, adopts to directly build in PowerDesigner The database file generated after modeling is imported into the MySQL database. It is necessary to establish user information tables, product information tables, seller location information tables, and buyer location information tables. The data information of product information, business location, and user location is transmitted to the server through the MySQL database, and JSON data analysis is realized through the http interface; the server is responsible for receiving and executing client requests and database access functions, while the mobile client is responsible for sending request commands, and Send the request to the server, and display the data returned by the server to the user interface; the Android system provides a wireless networking interface, and the server and the client transmit data through the wireless network. 5.根据权利要求1所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述系统包括HttpURLConnection和Apache HttpClient,采用OkHttp,OkHttp实现和java.net.HttpURLConnection一样的API;若使用ApacheHttpClient,OkHttp提供一个对应的okhttp-apache模块,使用OkHttp无需重写网络中的代码,从很多的常用连接问题中自动回复,若配置的服务器多个IP地址,当地一个IP连接失败的时候会自动尝试下一个IP,OkHttp处理服务器问题和SSL握手失败问题。5. the shopping system based on geographical location information under a kind of Android platform according to claim 1, is characterized in that: described system comprises HttpURLConnection and Apache HttpClient, adopts OkHttp, OkHttp realizes the same API with java.net.HttpURLConnection; If you use ApacheHttpClient, OkHttp provides a corresponding okhttp-apache module. Using OkHttp does not need to rewrite the code in the network, and it will automatically reply from many common connection problems. If the configured server has multiple IP addresses, when a local IP connection fails Will automatically try the next IP, OkHttp handles server issues and SSL handshake failure issues. 6.根据权利要求2所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述HTML5与原生的交互,原生的应用采用的语言有Object C(IOS)和java(Android),页面存放于本地,触屏版的网页应用采用的是html语言,受限制于Uiwebview,页面存放于服务器,半原生半Web的混合类应用是一种两者混合的app,采用C+html语言,也是受限制于Uiwebview。6. the shopping system based on geographic location information under a kind of Android platform according to claim 2, is characterized in that: described HTML5 interacts with native, the language that native application adopts has Object C (IOS) and java (Android ), the page is stored locally, and the touch-screen version of the web application uses html language, which is limited by Uiwebview, and the page is stored on the server. The half-native and half-Web hybrid application is a mixture of the two apps, using C+html Language is also limited by Uiwebview. 7.根据权利要求1所述的一种Android平台下基于地理位置信息的购物系统,其特征在于:所述系统利用网路请求实现客户端与LBS服务云平台交互,用开源的地图开发平台与资源实现地图的搜索,位置信息的地位,借助互联网或无线网络,在用户的手机客户端,随时调用支付接口;根据距离最近的商店直接在主界面的地图中点击进入,然后打开该商店的服务界面,让用户根据自己搜索到的商品通过距离的筛选直接呈现用面前,并且快速的完成商品的支付功能。7. the shopping system based on geographic location information under a kind of Android platform according to claim 1, is characterized in that: described system utilizes network request to realize that client and LBS service cloud platform interact, with the map development platform of open source and The resources realize the search of the map and the status of the location information. With the help of the Internet or wireless network, the user's mobile phone client can call the payment interface at any time; according to the nearest store, click to enter directly in the map of the main interface, and then open the service of the store The interface allows users to directly present the products they have searched for through distance screening, and quickly complete the payment function for the products.
CN201610319393.1A 2016-05-16 2016-05-16 Android purchase system based on geographical positional information Pending CN106022870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610319393.1A CN106022870A (en) 2016-05-16 2016-05-16 Android purchase system based on geographical positional information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610319393.1A CN106022870A (en) 2016-05-16 2016-05-16 Android purchase system based on geographical positional information

Publications (1)

Publication Number Publication Date
CN106022870A true CN106022870A (en) 2016-10-12

Family

ID=57100416

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610319393.1A Pending CN106022870A (en) 2016-05-16 2016-05-16 Android purchase system based on geographical positional information

Country Status (1)

Country Link
CN (1) CN106022870A (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107133837A (en) * 2017-03-22 2017-09-05 无锡中科富农物联科技有限公司 A kind of means of agricultural production e-commerce system based on SSH frameworks
CN107230127A (en) * 2017-04-24 2017-10-03 深圳市橙方智能科技有限公司 A kind of vending system
CN107392709A (en) * 2017-07-18 2017-11-24 卒子科技(深圳)有限公司 A kind of method and system of recommendation
CN107944934A (en) * 2017-12-26 2018-04-20 中山市优罗网络科技有限公司 Method, apparatus, computer device and storage medium for providing shop object information
CN108038738A (en) * 2017-12-27 2018-05-15 安徽和叶网络科技有限公司 Advertising method, client and computer-readable recording medium on line
CN108171878A (en) * 2017-12-25 2018-06-15 福建新大陆软件工程有限公司 Booking method, system and the platform of vending machine
CN108322416A (en) * 2017-01-16 2018-07-24 腾讯科技(深圳)有限公司 A kind of safety certification implementation method, apparatus and system
CN108475384A (en) * 2016-01-06 2018-08-31 谷歌有限责任公司 Automatically dispatch customer assistance at physical locations
CN108596582A (en) * 2018-04-17 2018-09-28 四川长虹电器股份有限公司 A kind of polymerization payment platform solution based on dubbo
WO2019000722A1 (en) * 2017-06-27 2019-01-03 武汉斗鱼网络科技有限公司 Hypertext markup language webpage loading method and device
WO2019006635A1 (en) * 2017-07-04 2019-01-10 深圳齐心集团股份有限公司 Big data retrieval system based on cloud computing
WO2019006648A1 (en) * 2017-07-04 2019-01-10 深圳齐心集团股份有限公司 Mobile phone app-based stationery purchase system for electronic commerce
CN109741116A (en) * 2019-01-28 2019-05-10 王睿琪 Product marketing method, device, server, storage medium and system
CN110009399A (en) * 2019-03-15 2019-07-12 嘉兴长润线业有限公司 A product promotion system for entity merchants based on positioning system
CN110892394A (en) * 2017-06-29 2020-03-17 亚马逊科技公司 Identification of incorrect addresses for package delivery
CN112967076A (en) * 2019-12-12 2021-06-15 杨菁洲 Android platform based shopping rebate APP
CN113674058A (en) * 2021-08-19 2021-11-19 江南大学 A New Intelligent Shopping Guide System Based on OneNET Platform
CN114036906A (en) * 2021-11-08 2022-02-11 中国科学院西北生态环境资源研究院 A software system and method for extracting geographic location from English document text
WO2022052896A1 (en) * 2020-09-11 2022-03-17 武汉丹娜文体用品有限公司 Sorting method, transaction method, computer device, and storage medium
WO2022111446A1 (en) * 2020-11-30 2022-06-02 维沃移动通信有限公司 Ordering method and apparatus, and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130218463A1 (en) * 2012-02-22 2013-08-22 Ebay Inc. Systems and methods for providing search results along a corridor
CN104365122A (en) * 2012-04-24 2015-02-18 高通股份有限公司 System for communicating relevant user information based on proximity and privacy controls
CN104392363A (en) * 2014-11-14 2015-03-04 广西爱店汇网络科技有限公司 Mobile market system and implementation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130218463A1 (en) * 2012-02-22 2013-08-22 Ebay Inc. Systems and methods for providing search results along a corridor
CN104365122A (en) * 2012-04-24 2015-02-18 高通股份有限公司 System for communicating relevant user information based on proximity and privacy controls
CN104392363A (en) * 2014-11-14 2015-03-04 广西爱店汇网络科技有限公司 Mobile market system and implementation method thereof

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108475384A (en) * 2016-01-06 2018-08-31 谷歌有限责任公司 Automatically dispatch customer assistance at physical locations
US11756042B2 (en) 2016-01-06 2023-09-12 Google Llc Automatic delivery of customer assistance at physical locations
CN108475384B (en) * 2016-01-06 2021-10-29 谷歌有限责任公司 Automated delivery of customer assistance at physical locations
CN108322416B (en) * 2017-01-16 2022-04-15 腾讯科技(深圳)有限公司 Security authentication implementation method, device and system
CN108322416A (en) * 2017-01-16 2018-07-24 腾讯科技(深圳)有限公司 A kind of safety certification implementation method, apparatus and system
CN107133837A (en) * 2017-03-22 2017-09-05 无锡中科富农物联科技有限公司 A kind of means of agricultural production e-commerce system based on SSH frameworks
CN107230127A (en) * 2017-04-24 2017-10-03 深圳市橙方智能科技有限公司 A kind of vending system
WO2019000722A1 (en) * 2017-06-27 2019-01-03 武汉斗鱼网络科技有限公司 Hypertext markup language webpage loading method and device
CN110892394B (en) * 2017-06-29 2023-11-17 亚马逊科技公司 Identification of incorrect address of parcel delivery
CN110892394A (en) * 2017-06-29 2020-03-17 亚马逊科技公司 Identification of incorrect addresses for package delivery
WO2019006635A1 (en) * 2017-07-04 2019-01-10 深圳齐心集团股份有限公司 Big data retrieval system based on cloud computing
WO2019006648A1 (en) * 2017-07-04 2019-01-10 深圳齐心集团股份有限公司 Mobile phone app-based stationery purchase system for electronic commerce
CN107392709A (en) * 2017-07-18 2017-11-24 卒子科技(深圳)有限公司 A kind of method and system of recommendation
CN108171878A (en) * 2017-12-25 2018-06-15 福建新大陆软件工程有限公司 Booking method, system and the platform of vending machine
CN107944934A (en) * 2017-12-26 2018-04-20 中山市优罗网络科技有限公司 Method, apparatus, computer device and storage medium for providing shop object information
CN108038738A (en) * 2017-12-27 2018-05-15 安徽和叶网络科技有限公司 Advertising method, client and computer-readable recording medium on line
CN108596582A (en) * 2018-04-17 2018-09-28 四川长虹电器股份有限公司 A kind of polymerization payment platform solution based on dubbo
CN109741116A (en) * 2019-01-28 2019-05-10 王睿琪 Product marketing method, device, server, storage medium and system
CN110009399A (en) * 2019-03-15 2019-07-12 嘉兴长润线业有限公司 A product promotion system for entity merchants based on positioning system
CN112967076A (en) * 2019-12-12 2021-06-15 杨菁洲 Android platform based shopping rebate APP
WO2022052896A1 (en) * 2020-09-11 2022-03-17 武汉丹娜文体用品有限公司 Sorting method, transaction method, computer device, and storage medium
WO2022111446A1 (en) * 2020-11-30 2022-06-02 维沃移动通信有限公司 Ordering method and apparatus, and electronic device
CN113674058A (en) * 2021-08-19 2021-11-19 江南大学 A New Intelligent Shopping Guide System Based on OneNET Platform
CN113674058B (en) * 2021-08-19 2024-03-01 江南大学 Novel intelligent shopping guide system based on OneNET platform
CN114036906A (en) * 2021-11-08 2022-02-11 中国科学院西北生态环境资源研究院 A software system and method for extracting geographic location from English document text

Similar Documents

Publication Publication Date Title
CN106022870A (en) Android purchase system based on geographical positional information
AU2021204770B2 (en) System integrating a mobile device application creation, editing and distribution system with a website design system
CN104704522B (en) Recommend native applications
US20080141237A1 (en) Software for managing data between a client and server
US11023556B2 (en) Web page designing with content beam to device preview
CN113971725A (en) Construction method and system, storage medium and electronic equipment of bank virtual branch
CN106447471A (en) House transaction management system
CN109076098A (en) Adopt data across different sites
Samal et al. Research on the Development of a New Shop Application Using Android
US20230037019A1 (en) Techniques for distributed interface component generation
CN101989195A (en) Data architecture for information system and architecture method
CN204790977U (en) APP automatic compilation system and management platform based on cloud calculates
CN106447551A (en) Real estate transaction management system
US20200126148A1 (en) System and method for management and delivery of shoppable content data
KR102714333B1 (en) Server for providing package travel product while sending and receiving chat messages with user device through intelligent agent and method for operation thereof
Kulshreshta et al. Web based Accounting Integrated Management System (AIMS) over Cloud using Mean Stack
CN103927173A (en) Data processing method and system based on integrated sales operation
JP6201045B2 (en) Electronic shop system in the form of an application for portable terminals, its electronic commerce method and application generator
Mu et al. Online Bookstore Management System Based on Android
Huo et al. Design and implementation of a second-hand items trading platform based on Android
KR102862800B1 (en) Initiate a request in response to a trigger on the client
She et al. IMPROVING DIGITAL PLATFORMS AND B2B2C STRATEGIES FOR CROSS-BORDER E-COMMERCE.
Kanduri Project-Games Room
Linzhi et al. Design of Customization Intelligent Management System for Whole House Home Based on SSH and Internet
Nguyen et al. Building a H&KStore website to Sell Clothes using Mern Stack in an MVC Format, Integrating Payment and Chatbox AI

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161012