/**
* 支付成功后的回调接口
*/
http://localhost/proxy/trunk/api/Index.php?method=agent.order.ordersuccess&format=json&charset=utf-8&version=1.0&user_auth_token=&biz_content={%22agentid%22:%22i33v0llvp0euhd1n9qo1fM2RV8vtog4y%22,%22channelid%22:%227N0e0z2u2098pf1M2fj0kyB1D4n4ylkA%22,%22openid%22:%22oIv1dwNhQf5Qi035Hz_IaV9YUN7E%22,%22unionid%22:%22oLVKiszIKAdCfJ70AS6QBe6Yq27A%22,%22orderno%22:%22SD201099201808171731138569%22,%22money%22:%22100%22,%22player%22:%22as%22,%22playerid%22:%22201099%22,%22salesid%22:%22%22,%22signkey%22:%220t3xm3w1foyhcmhlux31mwrmybqh4cgd%22}
/**
* 支付成功后的同步跳转页面
*/
https://proxytest.tscce.cn/web2/notify.html?order_no=PE100005201710191741532680&out_trade_no=ee9bd8043f2ce1b5814612128526d9d8&transaction_id=4200000025201710199032857393&total_fee=1&agentid=00bA05haB0d9ZC0fwGD09Q2OA30insbQ&channelid=frdt0C1GG0t91P0McFo0rbA1he5yurbS&billcode=PE100005201710191741532680&type=0&state=0&paytime=1508406124&sign=6cfb74600d530055de52df58543e4afe
https://proxytest.tscce.cn/web2/notify.html?order_no=SA957153201804181748296062&out_trade_no=7835d935207fa357a4766094439e2f20&transaction_id=2018041821001004600544861566&total_fee=1&agentid=i33v0llvp0euhd1n9qo1fM2RV8vtog4y&channelid=7N0e0z2u2098pf1M2fj0kyB1D4n4ylkA&type=0&state=become&paytime=1524044917&sign=ec0e5b2b3670f6f2bdba38c811586350
https://proxytest.tscce.cn/web2/notify.html?order_no=SD201099201808221631406615&out_trade_no=ed956aced29570f81b35a9b70a2c3e64&transaction_id=4200000165201808222932252294&total_fee=1&agentid=i33v0llvp0euhd1n9qo1fM2RV8vtog4y&channelid=7N0e0z2u2098pf1M2fj0kyB1D4n4ylkA&type=undefined&silence=1&state=sales&paytime=1534926706&sign=2d3e514a32b5fb4e81de642479b02ca4
// 香港-代理后台
http://dlwebv8.cn-tuyang.com/manage_login.html?agentid=V60103nhs0NVyt4582m6mk8jot0Bto01&channelid=qrim0tKKn0qiqm0FgXs1RwHtsyfinAff
王二哥账号:201316 2013168521
唐建账号:201872 123456
/**
* 修改代理权限
*/
UPDATE sales_user set saus_power = CONCAT(saus_power, '2') where saus_agentid = 'Cm2K0jK8e0tUl20gywl8iOkeKhSV4lSa' and saus_channelid = 'y2SK0h4df0rfGa0c9D17o589g7vXtw3L' and saus_salesman = 1 and LENGTH(saus_power) = 2;
/**
* 将玩家购买房卡的选项都关闭
*/
update sales_product set sapr_state=1 where product_type=0 and sapr_type=0 and sapr_agentid='i33v0llvp0euhd1n9qo1fM2RV8vtog4y';
/**
* 如月的测试玩家id
*/
457642
/**
* 从游戏查玩家信息
*/
http://121.43.232.182:31089/index.html?{%22app%22:%22youle%22,%22route%22:%22agent%22,%22rpc%22:%22query_player2%22,%22data%22:{%22agentid%22:%22veRa0qrBf0df2K1G4de2tgfmVxB2jxpv%22,%22playerid%22:%22626467%22}}
# 海外渠道版
http://150.109.40.74:31089/index.html?{%22app%22:%22youle%22,%22route%22:%22agent%22,%22rpc%22:%22query_player2%22,%22data%22:{%22agentid%22:%22V60103nhs0NVyt4582m6mk8jot0Bto01%22,%22playerid%22:%22331349%22}}
https://gameproxy.tscce.cn/api/Index.php?method=agent.agent.serverAddress&format=json&charset=utf-8&version=1.0&biz_content={"agentid":"00bA05haB0d9ZC0fwGD09Q2OA30insbQ","channelid":"frdt0C1GG0t91P0McFo0rbA1he5yurbS"}&user_auth_token=6a48NEDW5RzBoFWfBFLlul4OVAtseD5WvCSgsoFcZ43IZlqRXVJgGIbSC9JziQQsW2qO6j7fwg
/**
* 测试地址
*/
INSERT INTO `config_agent` (`agent_id`, `agent_name`, `html_buyroomcard`, `html_applysales`, `agent_mode`, `sale_qq`, `sale_wechat`, `sale_tel`, `rel_agent_id`, `logo`, `channel_id`) VALUES ('i33v0llvp0euhd1n9qo1fM2RV8vtog4y', '测试', '2', '2', '2', '1911719060
(工作时间:8:00--24:00)', 'youlehudong11', '', '', 'http://op0g0jeqa.bkt.clouddn.com/log2-YL.jpg', '7N0e0z2u2098pf1M2fj0kyB1D4n4ylkA');
INSERT INTO `config_agent` (`agent_id`, `agent_name`, `html_buyroomcard`, `html_applysales`, `agent_mode`, `sale_qq`, `sale_wechat`, `sale_tel`, `rel_agent_id`, `logo`, `channel_id`) VALUES
('nkTs0yPsV0jepu2kqFL5LafiuyF8fvoA', '测试', '2', '2', '2', '1911719060
(工作时间:8:00--24:00)', 'youlehudong11', '', '', 'http://op0g0jeqa.bkt.clouddn.com/log2-YL.jpg', 'mGoU0pJNt0hjkD0jdgq1pqThbcd8SEus');
/**
* 添加新的渠道
*/
# cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5 RGsj0TiHx0Kmju0IUVo1dv6e9j6ZV39y 崇仁聚友棋牌
INSERT INTO `agent` (`agen_agentid`, `agen_name`, `agen_logo`, `agen_parentid`, `agen_idxcode`, `agen_state`, `agen_sharingmode`, `agen_sharingrate`, `agen_selftotal`, `agen_selfsharing`, `agen_childsharing`, `agen_maxplayerid`, `agen_maxsalesid`, `agen_scrollmsg`, `agen_noticemsg`, `agen_server`, `agen_server_visitor`, `agen_port_tcp`, `agen_port_http`, `agen_downloadhtml`, `agen_freeroom`, `agen_salespower`, `agen_managecode`, `agen_user`, `agen_pwd`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', '崇仁聚友棋牌', NULL, NULL, '', '0', '0', '100', '0.00', '0.00', '0.00', '100000', '200000', NULL, NULL, '', '', '', '', '', '300', '11', '', '', '');
INSERT INTO `agent_channel` (`agch_agentid`, `agch_channelid`, `agch_channelname`, `agch_WechatPublicNo`, `agch_wechat_ewm`, `agch_service_wechat`, `agch_service_qq`, `agch_service_tel`, `agch_sales_tel`, `agch_sales_wechat`, `agch_youle_appid`, `agch_youle_devkey`, `agch_youle_busiid`, `agch_youle_signkey`, `agch_invitecode`, `agch_pay_appid`, `agch_pay_devkey`, `agch_pay_marketid`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', 'RGsj0TiHx0Kmju0IUVo1dv6e9j6ZV39y', '崇仁聚友棋牌', '崇仁聚友棋牌', '', '', '', '', '', '', '14966338932488', '14966329712475', 'ylhdyx', '0t3xm3w1foyhcmhlux31mwrmybqh4cgd', NULL, '14966338932488', '14966329712475', 'ylhdyx');
# 玩家购房卡
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+1), '0', '15元', '5', '15.00', '5张F卡', '0', '0');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+2), '0', '30元', '10', '30.00', '10张F卡', '0', '0');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+3), '0', '208元', '80', '208.00', '80张F卡', '0', '0');
# 代理购房卡
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+4), '1', '10元', '1', '10.00', '1张F卡', '0', '0');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+5), '1', '10元', '1', '10.00', '1张F卡', '0', '0');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+6), '1', '10元', '1', '10.00', '1张F卡', '0', '0');
# 玩家购星星
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+7), '0', '105元', '10000', '105.00', '一万个星星', '1', '1');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+8), '0', '525元', '50000', '525.00', '五万个星星', '1', '1');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+9), '0', '1050元', '100000', '1050.00', '十万个星星', '1', '1');
# 代理购星星
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+7), '1', '105元', '10000', '105.00', '一万个星星', '1', '1');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+8), '1', '525元', '50000', '525.00', '五万个星星', '1', '1');
INSERT INTO `sales_product` (`sapr_agentid`, `sapr_productid`, `sapr_type`, `sapr_name`, `sapr_amount`, `sapr_money`, `sapr_memo`, `sapr_state`, `product_type`) VALUES ('cjcH0Yrkq0EUfb2NvZu3pm7CG4y5fmo5', MD5(unix_timestamp(now())+9), '1', '1050元', '100000', '1050.00', '十万个星星', '1', '1');
ts已修改2021
https://operate.tscce.cn/login.html
https://operate.tscce.cn/login.html
200000
mimazijigai
/**
* 小聂游戏测试数据库地址
*/
rm-bp16sbf0l9cavp7h9o.mysql.rds.aliyuncs.com
develop
develop123!@#
// 小梦对应渠道的统计口径
update sales_user SET statistic_type=1 where saus_salesid in (200036, 200011, 200057, 200020, 200884,200010,200018,200008,200057,200161,200017,200007,200006,200025,200019,200031,200009) and saus_unionid ='oLVKisy_h3TdO8WQf6wdPJjcE-A8';
sales_sellbill 代理给玩家 转卡记录表
agent.demand.dealOrder 处理(代理、玩家)索取(房卡、星星)请求
Youle.Youle.productList 获取产品列表
agent.order.createStarOrder 生成星星订单
agent.order.createOrder 生成房卡订单
agent.order.starPaySuccess 星星
agent.order.paySuccess 房卡
agent.agent.deductPlayer 减玩家房卡/星星
agent.agent.deductSales 减代理房卡/星星
agent.agent.applySales
agent.card.addRecord 转卡记录
agent.demand.addStarRecord 转星星记录
agent.agent.playerCardStarRecord 玩家的房卡星星流水
agent.agent.salesCardStarRecord 代理房卡转入
agent.agent.salesCardStarDeduct 代理房卡转出
agent.agent.salesCardStarRecord 代理星星转入
agent.agent.salesCardStarDeduct 代理星星转出
agent.agent.bindSales 玩家绑定代理
agent.agent.bindRecommend 代理绑定代理