@andrey4emk/npm-app-back-b24 0.6.12 → 0.6.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bitrix24/b24.js +4 -0
- package/package.json +1 -1
- package/sendMessage/wappi.js +1 -1
package/bitrix24/b24.js
CHANGED
|
@@ -32,6 +32,10 @@ async function makeAuthParams(authParamB24, secretParamB24) {
|
|
|
32
32
|
|
|
33
33
|
export async function create(authParamB24, secretParamB24) {
|
|
34
34
|
let { AuthParams, secret } = await makeAuthParams(authParamB24, secretParamB24);
|
|
35
|
+
// Если authParamB24.domain содержит https://, то удаляем его
|
|
36
|
+
if (AuthParams.domain.startsWith("https://")) {
|
|
37
|
+
AuthParams.domain = AuthParams.domain.replace("https://", "");
|
|
38
|
+
}
|
|
35
39
|
return await new B24OAuth(AuthParams, secret);
|
|
36
40
|
}
|
|
37
41
|
|
package/package.json
CHANGED
package/sendMessage/wappi.js
CHANGED
|
@@ -215,7 +215,7 @@ export class Wappi {
|
|
|
215
215
|
} else {
|
|
216
216
|
// Проверяем нашли max или нет
|
|
217
217
|
data.check = false;
|
|
218
|
-
if (data.detail === "found" || data.on_max) {
|
|
218
|
+
if (data.detail === "found" || data.on_max || data.on_whatsapp) {
|
|
219
219
|
data.check = true;
|
|
220
220
|
}
|
|
221
221
|
return { error: false, message: `Номер ${phone} проверен для мессенджера ${messangerType}`, data: data };
|