拼多多给我们广大网友带来了很多物美价廉的商品,让大家拒绝暴利商品,都能买到平价商品,而且还不定时给用户发红包,运气好可以直接体现,一般流程是你需要邀请几个好友来互砍或者助力。小伙伴们又怕给熟悉的好友发这些链接烦到自己的朋友圈,那么这款拼多多互砍平台系统绝对是大家的福音。
功能简介
这个不用多说,就是广大网友在遇到砍价或者需要助力的时候又怕麻烦朋友圈,那么就求助热心网友吧!大家通过平台在一起互帮互助互砍,不浪费朋友圈也能轻松淘货助力。此小程序后端对接的自动发卡平台,网友需要助力时候直接在小程序下单推送到API接口平台,API接口方即有能力完成互砍的平台,也可以对接自己的平台。原理很简单,大家一看就懂。
搭建教程+完整源码
备案域名、服务器或者虚拟空间、ssl
【服务端】:
1、修改connect.php的数据库信息
2、修改post1~4.php中的id和key
3、在pay/cert放入微信商户证书文件
4、修改pay/api.php文件的商户号
【后台端】:
1、请修改config/comm/connect.php数据库链接地址
2、修改api/shenghe.php中的xxxx改为服务端域名
账号admin 密码123456 安全码123456
【小程序端】:
请修改appid和app.js中的域名
云开发请部署好环境
————————————————
1、什么是amoeba?
Amoeba(变形虫)项目,专注 分布式数据库 proxy 开发。座落与Client、DB Server(s)之间。对客户端透明。具有负载均衡、高可用性、sql过滤、读写分离、可路由相关的query到目标数据库、可并发请求多台数据库合并结果。
2、下载amoeba对应的版本https://sourceforge.net/projects/amoeba/ 直接解压即可
或者直接下载:
链接:https://pan.baidu.com/s/17uTby096HQZ37FlGPs088Q
提取码:77vc
3、下载解压之后
配置:dbServers.xml
<?xml version="1.0" encoding="gbk"?>
<!DOCTYPE amoeba:dbServers SYSTEM "dbserver.dtd">
<amoeba:dbServers xmlns:amoeba="http://amoeba.meidusa.com/">
<dbServer name="abstractServer" abstractive="true">
<factoryConfig class="com.meidusa.amoeba.mysql.net.MysqlServerConnectionFactory">
<property name="connectionManager">${defaultManager}</property>
<property name="sendBufferSize">64</property>
<property name="receiveBufferSize">128</property>
<!-- 配置链接端口 -->
<property name="port">3306</property>
<!-- 链接库-->
<property name="schema">mydb1</property>
<!-- 用户 -->
<property name="user">root</property>
<!-- 密码 -->
<property name="password">123456</property>
</factoryConfig>
<poolConfig class="com.meidusa.toolkit.common.poolable.PoolableObjectPool">
<property name="maxActive">500</property>
<property name="maxIdle">500</property>
<property name="minIdle">1</property>
<property name="minEvictableIdleTimeMillis">600000</property>
<property name="timeBetweenEvictionRunsMillis">600000</property>
<property name="testOnBorrow">true</property>
<property name="testOnReturn">true</property>
<property name="testWhileIdle">true</property>
</poolConfig>
</dbServer>
<!-- master 写 -->
<dbServer name="writedb" parent="abstractServer">
<factoryConfig>
<property name="ipAddress">192.168.1.28</property>
</factoryConfig>
</dbServer>
<!-- slave 读 -->
<dbServer name="slave" parent="abstractServer">
<factoryConfig>
<property name="ipAddress">192.168.1.29</property>
</factoryConfig>
</dbServer>
right.com.cn/forum/thread-6469461-1-1.html
right.com.cn/forum/thread-6469499-1-1.html
right.com.cn/forum/thread-6469493-1-1.html
right.com.cn/forum/thread-6469477-1-1.html
right.com.cn/forum/thread-6469472-1-1.html
right.com.cn/forum/thread-6469472-1-1.html
right.com.cn/forum/thread-6469461-1-1.html
<dbServer name="myslave" virtual="true">
<poolConfig class="com.meidusa.amoeba.server.MultipleServerPool">
<!-- Load balancing strategy: 1=ROUNDROBIN , 2=WEIGHTBASED , 3=HA-->
<property name="loadbalance">1</property>
<!-- Separated by commas,such as: server1,server2,server1 -->
<property name="poolNames">slave</property>
</poolConfig>
</dbServer>
</amoeba:dbServers>
配置:amoeba.xml
<?xml version="1.0" encoding="gbk"?>
<!DOCTYPE amoeba:configuration SYSTEM "amoeba.dtd">
<amoeba:configuration xmlns:amoeba="http://amoeba.meidusa.com/">
<proxy>
<!-- service class must implements com.meidusa.amoeba.service.Service -->
<service name="Amoeba for Mysql" class="com.meidusa.amoeba.mysql.server.MySQLService">
<!-- port -->
<property name="port">8066</property>
<!-- bind ipAddress -->
<!--
<property name="ipAddress">127.0.0.1</property>
-->
<property name="connectionFactory">
<bean class="com.meidusa.amoeba.mysql.net.MysqlClientConnectionFactory">
<property name="sendBufferSize">128</property>
<property name="receiveBufferSize">64</property>
</bean>
</property>
<property name="authenticateProvider">
<bean class="com.meidusa.amoeba.mysql.server.MysqlClientAuthenticator">
<property name="user">root</property>
<property name="password">123456</property>
<property name="filter">
<bean class="com.meidusa.toolkit.net.authenticate.server.IPAccessController">
<property name="ipFile">${amoeba.home}/conf/access_list.conf</property>
</bean>
</property>
</bean>
</property>
</service>
<runtime class="com.meidusa.amoeba.mysql.context.MysqlRuntimeContext">
<!-- proxy server client process thread size -->
<property name="executeThreadSize">128</property>
<!-- per connection cache prepared statement size -->
<property name="statementCacheSize">500</property>
<!-- default charset -->
<property name="serverCharset">utf8</property>
<!-- query timeout( default: 60 second , TimeUnit:second) -->
<property name="queryTimeout">60</property>
</runtime>
</proxy>
<!--
Each ConnectionManager will start as thread
manager responsible for the Connection IO read , Death Detection
-->
<connectionManagerList>
<connectionManager name="defaultManager" class="com.meidusa.toolkit.net.MultiConnectionManagerWrapper">
<property name="subManagerClassName">com.meidusa.toolkit.net.AuthingableConnectionManager</property>
</connectionManager>
</connectionManagerList>
<!-- default using file loader -->
<dbServerLoader class="com.meidusa.amoeba.context.DBServerConfigFileLoader">
<property name="configFile">${amoeba.home}/conf/dbServers.xml</property>
</dbServerLoader>
<queryRouter class="com.meidusa.amoeba.mysql.parser.MysqlQueryRouter">
<property name="ruleLoader">
<bean class="com.meidusa.amoeba.route.TableRuleFileLoader">
<property name="ruleFile">${amoeba.home}/conf/rule.xml</property>
<property name="functionFile">${amoeba.home}/conf/ruleFunctionMap.xml</property>
</bean>
</property>
<property name="sqlFunctionFile">${amoeba.home}/conf/functionMap.xml</property>
<property name="LRUMapSize">1500</property>
<!-- 配置默认 读 写节点 与dbServers.xml中定义的名称相同 -->
<property name="defaultPool">writedb</property>
<property name="writePool">writedb</property>
<property name="readPool">myslave</property>
<property name="needParse">true</property>
</queryRouter>
</amoeba:configuration>
4、启动amoeba
./launcher
使用Navicat链接8066端口,测试是否配置成功。
————————————————
版权声明:本文为CSDN博主「小虎i」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_45570824/article/details/121018345