|
@@ -187,7 +187,7 @@ async sub verify_xfer_to
|
|
|
return _("Номер личного счета должен состоять из цифр") unless $target_uid =~ /^\d+$/;
|
|
return _("Номер личного счета должен состоять из цифр") unless $target_uid =~ /^\d+$/;
|
|
|
return _("Нельзя перевести деньги себе самому") if $uid==$target_uid;
|
|
return _("Нельзя перевести деньги себе самому") if $uid==$target_uid;
|
|
|
|
|
|
|
|
- my $res = eval { await $client->get_p("client", "/client/$target_uid") };
|
|
|
|
|
|
|
+ my $res = eval { await $abon_client->get_p($info, "client", "/client/$target_uid") };
|
|
|
if ($@)
|
|
if ($@)
|
|
|
{
|
|
{
|
|
|
die $@ unless $@->{code} == 404;
|
|
die $@ unless $@->{code} == 404;
|
|
@@ -365,6 +365,11 @@ async sub callback_task
|
|
|
{text => _("Добавить комментарий"), callback_data => "\x00comment $task_id"},
|
|
{text => _("Добавить комментарий"), callback_data => "\x00comment $task_id"},
|
|
|
]];
|
|
]];
|
|
|
|
|
|
|
|
|
|
+ unless (@str)
|
|
|
|
|
+ {
|
|
|
|
|
+ $str[0] = "<i>Комментариев пока нет</i>";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
reply_with($info, {inline_menu=>$menu}, @str);
|
|
reply_with($info, {inline_menu=>$menu}, @str);
|
|
|
|
|
|
|
|
$client->post_p("task", "/task/$task_id/comment/read", {for_client=>$uid});
|
|
$client->post_p("task", "/task/$task_id/comment/read", {for_client=>$uid});
|