Доброго дня,
Добавляю к текущей интеграции со Сталкером еще IPTV Портал.
Проблема в том, что когда на договоре создается аккаунт для IPTV Портала, биллинг заводит не терминал (с мак адресом), а абонента. Можно это как-то перенастроить?
Вот лог создания аккаунта:
Код:
mq 06-10/15:15:12 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.api.common.event.TvAccountModifiedEvent] moduleId: 1; pluginId: no; cid: 342; scid: -1; userId: 1; timestamp: 1465557312768
mq 06-10/15:15:12 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Adding new accountRuntime: 376
mq 06-10/15:15:12 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Loading TvAccount from database.
mq 06-10/15:15:12 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Adding TvAccountRuntime: 376
mq 06-10/15:15:12 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - ContractId: 342; tvAccountId: 376
SMART: 12345678AAAA
Products [] TariffModuleTreeSet [1:10.06.2016-?; ]
Device state: 0; serviceIds:
connection 06-10/15:15:12 INFO [sa-p-6-t-73] OrderManagerSet - Connecting to device
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - post: https://smart.xxx.az:443/api/jsonrpc/
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - >> {"method":"authorize_user","id":11,"jsonrpc":"2.0","params":{"password":"xxx","username":"admin"}}
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - << {"jsonrpc":"2.0","id":11,"result":{"id":1,"session_id":"45d11ec661594ab3b0d19eaaefa27868","language_iso639_1":"ru"}}
connection 06-10/15:15:12 INFO [sa-p-6-t-73] OrderManagerDeviceWorker - Do task deviceId: 3; Event[ru.bitel.bgbilling.modules.tv.access.om.event.OmTvAccountModifyEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 0; oldTvAccount: null; newTvAccount: SMART: 12345678AAAA; newState: 1; timestamp: 1465557312757
connection 06-10/15:15:12 INFO [sa-p-6-t-73] OrderManagerDeviceWorker - Command result event: ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@4e27d8ab
connection 06-10/15:15:12 INFO [sa-p-6-t-73] OrderManagerDeviceWorker - Processing deviceId:3; command ru.bitel.bgbilling.modules.tv.access.om.AccountOrderEvent@4e27d8ab
connection 06-10/15:15:12 INFO [sa-p-6-t-73] OrderManagerSet - Invoking accountModify
connection 06-10/15:15:12 INFO [sa-p-6-t-73] IptvPortalOrderManager - accountModify
connection 06-10/15:15:12 INFO [sa-p-6-t-73] IptvPortalOrderManager - accountModify0
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - post: https://smart.xxx.az:443/api/jsonsql/
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - {Iptvportal-Authorization=sessionid=45d11ec661594ab3b0d19eaaefa27868}
connection 06-10/15:15:12 INFO [sa-p-6-t-73] JsonClient - >> {"method":"insert","id":12,"jsonrpc":"2.0","params":{"into":"subscriber","columns":["username","password","max_terminal","email","language_id","disabled","first_name","middle_name","surname"],"returning":"id","values":["","",3,"",1,false,"","",""]}}
connection 06-10/15:15:13 INFO [sa-p-6-t-73] JsonClient - << {"result":[472910],"id":12,"method":"insert"}
connection 06-10/15:15:13 INFO [sa-p-6-t-73] JsonClient - post: https://smart.xxx.az:443/api/jsonsql/
connection 06-10/15:15:13 INFO [sa-p-6-t-73] JsonClient - {Iptvportal-Authorization=sessionid=45d11ec661594ab3b0d19eaaefa27868}
connection 06-10/15:15:13 INFO [sa-p-6-t-73] JsonClient - >> {"method":"select","id":13,"jsonrpc":"2.0","params":{"data":["package_id"],"from":"subscriber_package","where":{"eq":["subscriber_id","472910"]}}}
connection 06-10/15:15:13 INFO [sa-p-6-t-73] JsonClient - << {"result":[],"id":13,"method":"select"}
connection 06-10/15:15:13 INFO [sa-p-6-t-73] IptvPortalOrderManager - Current packageIds: [], need packageIds: []
connection 06-10/15:15:13 INFO [sa-p-6-t-73] OrderManagerDeviceWorker - Process event type[2] result=true
connection 06-10/15:15:13 INFO [sa-p-6-t-73] OrderManagerDeviceWorker - Changing TvAccount:376 state and/or options
mq 06-10/15:15:13 INFO [event-proc-p-2-t-1] TvAccountRuntimeMap - Caught event: Event[ru.bitel.bgbilling.modules.tv.access.event.TvAccountDeviceStateAndOptionsModifiedEvent] moduleId: 1; pluginId: no; cid: global; scid: -1; userId: -1; deviceId: 3; tvAccountId: 376; state: 1; optionIds: ; timestamp: 1465557313024
Код:
Сервер: вер. 7.0.1050 / 06.06.2016 19:12:37
os: Linux; java: Java HotSpot(TM) 64-Bit Server VM, v.1.8.0_73
card: вер. 7.0.38 / 26.05.2016 17:24:17
reports: вер. 7.0.210 / 06.06.2016 18:29:00
tv: вер. 7.0.212 / 06.06.2016 18:32:20