30 lines
859 B
JavaScript
30 lines
859 B
JavaScript
///////////////////////////////////////////////////
|
|
/////// cls_youle_sales_import: 输入接口 ///////
|
|
///////////////////////////////////////////////////
|
|
var cls_youle_sales_import = cls_youle_sales_import || {
|
|
|
|
new: function() {
|
|
|
|
var imp = {};
|
|
|
|
//玩家购买房卡
|
|
imp.player_buy_roomcard = function(agentid, playerid, roomcard, amount){
|
|
youle_agent.export.buy_topup(agentid, playerid, 1, roomcard, amount);
|
|
}
|
|
|
|
//玩家充卡
|
|
imp.player_topup_roomcard = function(agentid, playerid, roomcard, amount){
|
|
youle_agent.export.buy_topup(agentid, playerid, 2, roomcard, amount);
|
|
}
|
|
|
|
//玩家充星星
|
|
imp.player_topup_bean = function(agentid, playerid, bean, amount){
|
|
youle_agent.export.buy_topup_bean(agentid, playerid, 2, bean, amount);
|
|
}
|
|
|
|
return imp;
|
|
}
|
|
}
|
|
|
|
//数据异常处理
|
|
youle_sales.import = cls_youle_sales_import.new(); |