Возникла задача по зачислению на лицевые счета клиентов карточек предоплаты. Сами они этого из личного кабинета сделать не могут/не умеют/не хотят.
По примеру из личного кабинета был нарисован вот такой XML:
Код: Выделить всё
add_payment_card.xml:
<?xml version="1.0"?>
<urfa>
<parameter name="account_id" comment="Account ID"/>
<parameter name="card_id" comment="Card num"/>
<parameter name="secret" comment="PIN"/>
<call function="rpcf_user5_card_payment"/>
<if variable="result" value="0" condition="eq">
<string name="error" />
</if>
<parameter name="account_id" comment="Account ID"/>
<parameter name="int_status" comment="Status"/>
<call function="rpcf_user5_change_int_status_for_account"/>
</urfa>
/netup/utm5/bin/utm5_urfaclient -a add_payment_card -account_id ЛС -card_id НОМЕР -secret ПИН -int_status 1
на стороне клиента получаем:
Notice: Dec 05 16:11:42 f709c9e0 UTM5 Config: Processing config file: /netup/utm5/utm5_urfaclient.cfg
Processing action: add_payment_card
ERROR: code 13 (Permission denied)
на стороне сервера:
Код: Выделить всё
Info : Dec 05 16:31:05 f288cb70 RPCServer@0.0.0.0: Client connecting: 172.31.0.12:39739
Info : Dec 05 16:31:05 f288cb70 RPCConn: Connection from: 172.31.0.12:39739 new Session Key <3973dc4e8d0414e7cb673f46f63d59a2>
?Debug : Dec 05 16:31:05 f288cb70 DBA:Ctx: Looking for urgent DB context
?Debug : Dec 05 16:31:05 f288cb70 DBA Groups: Group: -1 from 1
?Debug : Dec 05 16:31:05 f288cb70 DBA:Ctx: Pushing back urgent DB context
-Stats : Dec 05 16:31:05 f288cb70 DBA Groups: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
?Debug : Dec 05 16:31:05 f288cb70 StreamManager: connection <9> created
Info : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Access granted to [SSL]<init@172.31.0.12> (UID: -1)
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: SSL type requested: SSLv3(4)
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Call: 0x00a2 (urfaclient-call)
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Real Call: 0x00a2 (urfaclient-call)
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Call 0x00a2 (urfaclient-call) finished...
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Stream cleared
Info : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Request for illegal function: 0xffffbdfb
Warn : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Session closed
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Session Key <3973dc4e8d0414e7cb673f46f63d59a2> stored for UID -1 from <172.31.0.12>
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: SSL cleared
?Debug : Dec 05 16:31:05 f288cb70 StreamManager: connection <9> closed
?Debug : Dec 05 16:31:05 f288cb70 RPCConn[SSL]<init@172.31.0.12>: Session closed...