mirror of
https://github.com/retailcrm/mg-bot-helper.git
synced 2025-04-20 01:10:58 +00:00
Добавил поддержку retailcrm.es, добавил единицы измерения из CRM
This commit is contained in:
parent
9e6b483ef4
commit
4c9dc6e286
7 changed files with 4 additions and 7 deletions
|
@ -11,7 +11,7 @@ services:
|
|||
- ${POSTGRES_ADDRESS:-127.0.0.1:5434}:${POSTGRES_PORT:-5432}
|
||||
|
||||
mg_bot_test:
|
||||
image: golang:1.11.5-stretch
|
||||
image: golang:1.11-stretch
|
||||
working_dir: /mg-bot
|
||||
user: ${UID:-1000}:${GID:-1000}
|
||||
environment:
|
||||
|
|
2
go.sum
2
go.sum
|
@ -12,7 +12,7 @@ github.com/denisenkom/go-mssqldb v0.0.0-20180901172138-1eb28afdf9b6 h1:BZGp1dbKF
|
|||
github.com/denisenkom/go-mssqldb v0.0.0-20180901172138-1eb28afdf9b6/go.mod h1:xN/JuLBIz4bjkxNmByTiV1IbhfnYb6oo99phBn4Eqhc=
|
||||
github.com/docker/distribution v2.6.2+incompatible h1:4FI6af79dfCS/CYb+RRtkSHw3q1L/bnDjG1PcPZtQhM=
|
||||
github.com/docker/distribution v2.6.2+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
|
||||
github.com/docker/docker v1.13.1 h1:5VBhsO6ckUxB0A8CE5LlUJdXzik9cbEbBTQ/ggeml7M=
|
||||
github.com/docker/docker v1.13.1 h1:IkZjBSIc8hBjLpqeAbeE5mca5mNgeatLHBy3GO78BWo=
|
||||
github.com/docker/docker v1.13.1/go.mod h1:eEKB0N0r5NX/I1kEveEz05bcu8tLC/8azJZsviup8Sk=
|
||||
github.com/docker/go-connections v0.4.0 h1:El9xVISelRB7BuFusrZozjnkIM5YnzCViNKohAFqRJQ=
|
||||
github.com/docker/go-connections v0.4.0/go.mod h1:Gbd7IOopHjR8Iph03tsViu4nIes5XhDvyHbTtUxmeec=
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"gopkg.in/go-playground/validator.v9"
|
||||
)
|
||||
|
||||
var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro)|ecomlogic\.com)`)
|
||||
var regCommandName = regexp.MustCompile(`https://?[\da-z.-]+\.(retailcrm\.(ru|pro|es)|ecomlogic\.com)`)
|
||||
|
||||
type defaultValidator struct {
|
||||
once sync.Once
|
||||
|
|
|
@ -314,7 +314,7 @@ func (w *Worker) execCommand(message string) (resMes string, msgProd v1.MessageP
|
|||
if vp.Quantity > 0 {
|
||||
msgProd.Quantity = &v1.MessageOrderQuantity{
|
||||
Value: vp.Quantity,
|
||||
Unit: w.localizer.MustLocalize(&i18n.LocalizeConfig{MessageID: "pieces"}),
|
||||
Unit: vo.Unit.Sym,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -45,4 +45,3 @@ get_delivery: Get available types of deliveries
|
|||
get_product: Get product by article or name
|
||||
payment_options: "Payment options:"
|
||||
delivery_options: "Delivery options:"
|
||||
pieces: "pcs."
|
||||
|
|
|
@ -45,4 +45,3 @@ get_delivery: Obtener tipos de entrega disponibles
|
|||
get_product: Recibir los productos por el artículo o el nombre
|
||||
payment_options: "Opciones de pago:"
|
||||
delivery_options: "Opciones de entrega:"
|
||||
pieces: "piezas"
|
||||
|
|
|
@ -45,4 +45,3 @@ get_delivery: Получить доступные типы доставок
|
|||
get_product: Получить товар по артикулу или наименованию
|
||||
payment_options: "Варианты оплаты:"
|
||||
delivery_options: "Варианты доставки:"
|
||||
pieces: "шт."
|
||||
|
|
Loading…
Add table
Reference in a new issue