fix enamad
This commit is contained in:
@@ -1236,7 +1236,7 @@ WHERE `key` = 'main_product';
|
|||||||
|
|
||||||
-- longtext
|
-- longtext
|
||||||
UPDATE `settings` SET `type` = 'longtext' WHERE `key` IN (
|
UPDATE `settings` SET `type` = 'longtext' WHERE `key` IN (
|
||||||
'text_rule', 'text_about', 'about_software', 'enamad_url', 'support_messenger_text', 'invite_link_text',
|
'text_rule', 'text_about', 'about_software', 'support_messenger_text', 'invite_link_text',
|
||||||
'deposit_support_message_text', 'price_channel_message_text',
|
'deposit_support_message_text', 'price_channel_message_text',
|
||||||
'montzar_order_response', 'montzar_last_product_log', 'tracking_systems'
|
'montzar_order_response', 'montzar_last_product_log', 'tracking_systems'
|
||||||
);
|
);
|
||||||
@@ -1358,6 +1358,10 @@ INSERT INTO `settings` (`key`, `title_fa`, `value`, `can_edit`, `is_exist`, `is_
|
|||||||
SELECT 'enamad_url', 'آدرس اینماد', '', 1, 0, 1, 'text'
|
SELECT 'enamad_url', 'آدرس اینماد', '', 1, 0, 1, 'text'
|
||||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'enamad_url' LIMIT 1);
|
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'enamad_url' LIMIT 1);
|
||||||
|
|
||||||
|
INSERT INTO `settings` (`key`, `title_fa`, `value`, `can_edit`, `is_exist`, `is_active`, `type`)
|
||||||
|
SELECT 'enamad_logo', 'لوگوی اینماد', '', 1, 0, 1, 'text'
|
||||||
|
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'enamad_logo' LIMIT 1);
|
||||||
|
|
||||||
INSERT INTO `settings` (`key`, `title_fa`, `value`, `can_edit`, `is_exist`, `is_active`, `type`)
|
INSERT INTO `settings` (`key`, `title_fa`, `value`, `can_edit`, `is_exist`, `is_active`, `type`)
|
||||||
SELECT 'zaarbox_api_url', 'آدرس API تابلو Zaarbox', '', 1, 0, 1, 'text'
|
SELECT 'zaarbox_api_url', 'آدرس API تابلو Zaarbox', '', 1, 0, 1, 'text'
|
||||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1);
|
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'zaarbox_api_url' LIMIT 1);
|
||||||
@@ -1689,6 +1693,7 @@ UPDATE `settings` SET `description` = 'متن کامل قوانین و مقرر
|
|||||||
UPDATE `settings` SET `description` = 'متن «درباره ما» شامل معرفی مجموعه، راههای ارتباطی و توضیح خدمات. در صفحه مربوطه در اپ کاربر نمایش داده میشود.' WHERE `key` = 'text_about';
|
UPDATE `settings` SET `description` = 'متن «درباره ما» شامل معرفی مجموعه، راههای ارتباطی و توضیح خدمات. در صفحه مربوطه در اپ کاربر نمایش داده میشود.' WHERE `key` = 'text_about';
|
||||||
UPDATE `settings` SET `description` = 'متن معرفی نرمافزار — در تنظیمات پنل ذخیره میشود (HTML یا چند خط متن).' WHERE `key` = 'about_software';
|
UPDATE `settings` SET `description` = 'متن معرفی نرمافزار — در تنظیمات پنل ذخیره میشود (HTML یا چند خط متن).' WHERE `key` = 'about_software';
|
||||||
UPDATE `settings` SET `description` = 'لینک اعتماد اینماد (مثلاً trustseal.enamad.ir/?id=...&Code=...).' WHERE `key` = 'enamad_url';
|
UPDATE `settings` SET `description` = 'لینک اعتماد اینماد (مثلاً trustseal.enamad.ir/?id=...&Code=...).' WHERE `key` = 'enamad_url';
|
||||||
|
UPDATE `settings` SET `description` = 'آدرس تصویر لوگوی اینماد (مثلاً trustseal.enamad.ir/logo.aspx?id=...&Code=...).' WHERE `key` = 'enamad_logo';
|
||||||
|
|
||||||
UPDATE `settings` SET `description` = 'روشن: وارد کردن کد معرف در ثبتنام اجباری است. خاموش: کد معرف اختیاری است. اگر «نمایش فیلد کد معرف» خاموش باشد، اجباری بودن اعمال نمیشود.' WHERE `key` = 'referral_id';
|
UPDATE `settings` SET `description` = 'روشن: وارد کردن کد معرف در ثبتنام اجباری است. خاموش: کد معرف اختیاری است. اگر «نمایش فیلد کد معرف» خاموش باشد، اجباری بودن اعمال نمیشود.' WHERE `key` = 'referral_id';
|
||||||
UPDATE `settings` SET `description` = 'روشن: فیلد کد معرف در صفحه ثبتنام اپ کاربر نمایش داده میشود. خاموش: فیلد مخفی است (لینک دعوت با ?id= همچنان اعمال میشود). اگر خاموش است و اجباری روشن باشد، فقط ثبتنام از لینک دعوت ممکن است.' WHERE `key` = 'referral_show';
|
UPDATE `settings` SET `description` = 'روشن: فیلد کد معرف در صفحه ثبتنام اپ کاربر نمایش داده میشود. خاموش: فیلد مخفی است (لینک دعوت با ?id= همچنان اعمال میشود). اگر خاموش است و اجباری روشن باشد، فقط ثبتنام از لینک دعوت ممکن است.' WHERE `key` = 'referral_show';
|
||||||
@@ -1912,7 +1917,7 @@ WHERE `key` = 'price_channel_message_text';
|
|||||||
|
|
||||||
UPDATE `settings` SET `type` = 'longtext'
|
UPDATE `settings` SET `type` = 'longtext'
|
||||||
WHERE `key` IN (
|
WHERE `key` IN (
|
||||||
'text_rule', 'text_about', 'about_software', 'enamad_url', 'support_messenger_text', 'invite_link_text',
|
'text_rule', 'text_about', 'about_software', 'support_messenger_text', 'invite_link_text',
|
||||||
'deposit_support_message_text', 'price_channel_message_text',
|
'deposit_support_message_text', 'price_channel_message_text',
|
||||||
'montzar_order_response', 'montzar_last_product_log'
|
'montzar_order_response', 'montzar_last_product_log'
|
||||||
);
|
);
|
||||||
@@ -2138,6 +2143,8 @@ UPDATE `settings` SET `title_fa` = 'فعالسازی شبکه شتابی' WHE
|
|||||||
UPDATE `settings` SET `title_fa` = 'متن درباره ما' WHERE `key` = 'text_about';
|
UPDATE `settings` SET `title_fa` = 'متن درباره ما' WHERE `key` = 'text_about';
|
||||||
UPDATE `settings` SET `title_fa` = 'متن درباره نرمافزار' WHERE `key` = 'about_software';
|
UPDATE `settings` SET `title_fa` = 'متن درباره نرمافزار' WHERE `key` = 'about_software';
|
||||||
UPDATE `settings` SET `title_fa` = 'آدرس اینماد' WHERE `key` = 'enamad_url';
|
UPDATE `settings` SET `title_fa` = 'آدرس اینماد' WHERE `key` = 'enamad_url';
|
||||||
|
UPDATE `settings` SET `title_fa` = 'لوگوی اینماد' WHERE `key` = 'enamad_logo';
|
||||||
|
UPDATE `settings` SET `type` = 'text', `can_edit` = 1 WHERE `key` IN ('enamad_url', 'enamad_logo');
|
||||||
UPDATE `settings` SET `title_fa` = 'متن قوانین' WHERE `key` = 'text_rule';
|
UPDATE `settings` SET `title_fa` = 'متن قوانین' WHERE `key` = 'text_rule';
|
||||||
-- [super-admin can_edit=0]
|
-- [super-admin can_edit=0]
|
||||||
-- UPDATE `settings` SET `title_fa` = 'عنوان favicon' WHERE `key` = 'title_fav';
|
-- UPDATE `settings` SET `title_fa` = 'عنوان favicon' WHERE `key` = 'title_fav';
|
||||||
@@ -2251,7 +2258,7 @@ UPDATE `settings` SET `can_edit` = 1 WHERE `key` IN (
|
|||||||
'has_chat',
|
'has_chat',
|
||||||
'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_account_number', 'deposit_sheba',
|
'deposit_support_message_text', 'deposit_account_holder', 'deposit_card_number', 'deposit_account_number', 'deposit_sheba',
|
||||||
'deposit_method_card_to_card', 'deposit_method_gateway', 'deposit_method_identified', 'deposit_method_shetab',
|
'deposit_method_card_to_card', 'deposit_method_gateway', 'deposit_method_identified', 'deposit_method_shetab',
|
||||||
'text_about', 'text_rule', 'about_software', 'enamad_url',
|
'text_about', 'text_rule', 'about_software', 'enamad_url', 'enamad_logo',
|
||||||
'price_channel_enabled', 'price_channel_messengers', 'price_channel_diff',
|
'price_channel_enabled', 'price_channel_messengers', 'price_channel_diff',
|
||||||
'price_channel_min_seconds', 'price_channel_message_text',
|
'price_channel_min_seconds', 'price_channel_message_text',
|
||||||
'price_channel_footer_id', 'price_channel_footer_phone',
|
'price_channel_footer_id', 'price_channel_footer_phone',
|
||||||
|
|||||||
@@ -46,7 +46,12 @@ UPDATE `settings` SET `menu` = CASE
|
|||||||
WHEN `key` LIKE 'telegram_bot%' OR `key` LIKE 'bale_bot%' OR `key` LIKE 'rubika_bot%' THEN 'bots'
|
WHEN `key` LIKE 'telegram_bot%' OR `key` LIKE 'bale_bot%' OR `key` LIKE 'rubika_bot%' THEN 'bots'
|
||||||
WHEN `key` LIKE 'referral_%'
|
WHEN `key` LIKE 'referral_%'
|
||||||
OR `key` IN ('invite_link_text', 'gift_for', 'register_referral', 'referral_bonus_amount') THEN 'referral'
|
OR `key` IN ('invite_link_text', 'gift_for', 'register_referral', 'referral_bonus_amount') THEN 'referral'
|
||||||
WHEN `key` LIKE 'text_%' OR `key` IN ('enamad_url', 'about_software') THEN 'content'
|
WHEN `key` LIKE 'text_%' OR `key` IN ('about_software') THEN 'content'
|
||||||
|
WHEN `key` LIKE 'logo_%' OR `key` IN (
|
||||||
|
'name_fa', 'name_en', 'app_url', 'admin_url', 'apk_download_link', 'bace_url', 'server_url',
|
||||||
|
'title_pwa', 'title_fav', 'metal_type', 'main_metal', 'unit', 'open_register', 'auto_active_customer',
|
||||||
|
'store_status', 'key', 'is_store', 'sms_panel', 'enamad_url', 'enamad_logo'
|
||||||
|
) THEN 'general'
|
||||||
WHEN `key` LIKE 'min_%' OR `key` LIKE 'minimum_%' OR `key` LIKE 'balance_report_exclude%' THEN 'limits'
|
WHEN `key` LIKE 'min_%' OR `key` LIKE 'minimum_%' OR `key` LIKE 'balance_report_exclude%' THEN 'limits'
|
||||||
WHEN `key` LIKE 'zaarbox_%' OR `key` IN ('price_provider', 'main_product') THEN 'price_source'
|
WHEN `key` LIKE 'zaarbox_%' OR `key` IN ('price_provider', 'main_product') THEN 'price_source'
|
||||||
WHEN `key` LIKE 'node_%' OR `key` IN ('montify_name', 'external_order_api_enabled') THEN 'store'
|
WHEN `key` LIKE 'node_%' OR `key` IN ('montify_name', 'external_order_api_enabled') THEN 'store'
|
||||||
@@ -66,12 +71,6 @@ UPDATE `settings` SET `menu` = CASE
|
|||||||
'has_page_gift_card', 'enable_customer_level_profit', 'jibit_enabled', 'customer_direct_sms',
|
'has_page_gift_card', 'enable_customer_level_profit', 'jibit_enabled', 'customer_direct_sms',
|
||||||
'has_page_earn_money', 'group_sms', 'customer_special_pricing', 'permision__enabled', 'show_to_users_chat'
|
'has_page_earn_money', 'group_sms', 'customer_special_pricing', 'permision__enabled', 'show_to_users_chat'
|
||||||
) THEN 'customer_features'
|
) THEN 'customer_features'
|
||||||
WHEN `key` LIKE 'logo_%'
|
|
||||||
OR `key` IN (
|
|
||||||
'name_fa', 'name_en', 'app_url', 'admin_url', 'apk_download_link', 'bace_url', 'server_url',
|
|
||||||
'title_pwa', 'title_fav', 'metal_type', 'main_metal', 'unit', 'open_register', 'auto_active_customer',
|
|
||||||
'store_status', 'key', 'is_store', 'sms_panel'
|
|
||||||
) THEN 'general'
|
|
||||||
ELSE 'misc'
|
ELSE 'misc'
|
||||||
END;
|
END;
|
||||||
|
|
||||||
@@ -99,6 +98,7 @@ UPDATE `settings` SET `show_to_user` = 1 WHERE `key` IN (
|
|||||||
'deposit_support_message_text',
|
'deposit_support_message_text',
|
||||||
'enable_conditional_order',
|
'enable_conditional_order',
|
||||||
'enable_product_funds',
|
'enable_product_funds',
|
||||||
|
'enamad_logo',
|
||||||
'enamad_url',
|
'enamad_url',
|
||||||
'endDay',
|
'endDay',
|
||||||
'fee_conditional_order',
|
'fee_conditional_order',
|
||||||
|
|||||||
Reference in New Issue
Block a user