feat: landing settings, instant withdraw deduct, and OTP site URL
Add has_landing plus landing_* deploy keys, deduct balance on withdraw request, keep app_url for SMS login links, and clarify Zarin rial wallet document titles. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -905,6 +905,66 @@ SELECT 'has_chat', 'true', 'چت پشتیبانی', 1, 1,
|
||||
'روشن: چت پشتیبانی در اپ مشتری نمایش داده میشود (فقط وقتی show_to_users_chat هم روشن باشد). خاموش: دکمه و صفحه چت برای کاربر مخفی است.', 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_chat' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'has_landing', 'false', 'لندینگ وبسایت', 0, 1,
|
||||
'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.', 'switch'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'has_landing' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_site', '', 'تنظیمات کلی سایت', 1, 1,
|
||||
'محتوای تنظیمات کلی لندینگ وبسایت. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_site' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_header', '', 'هدر و ناوبری', 1, 1,
|
||||
'محتوای هدر و ناوبری لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_header' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_hero', '', 'هیرو', 1, 1,
|
||||
'محتوای سکشن هیرو لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_hero' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_live_price', '', 'لیبلهای قیمت لحظهای', 1, 1,
|
||||
'لیبلها و متن قیمت لحظهای لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_live_price' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_calculator', '', 'عنوان ماشین حساب', 1, 1,
|
||||
'عنوان و متن ماشین حساب لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_calculator' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_feature', '', 'امکانات (چرا نیازی طلا)', 1, 1,
|
||||
'متن امکانات لندینگ (چرا نیازی طلا). در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_feature' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_steps', '', 'مراحل شروع', 1, 1,
|
||||
'متن مراحل شروع لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_steps' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_trust', '', 'اعتماد و مجوزها', 1, 1,
|
||||
'متن اعتماد و مجوزها (بدون اینماد). در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_trust' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_faq', '', 'سوالات متداول', 1, 1,
|
||||
'سوالات متداول لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_faq' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_buttom_cta', '', 'سکشن پایین صفحه لندینگ برای معرفی', 1, 1,
|
||||
'متن دعوت به اقدام پایین صفحه لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_buttom_cta' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'landing_footer', '', 'فوتر', 1, 1,
|
||||
'محتوای فوتر لندینگ. در اپ کاربر با get_settings در دسترس است.', 'longtext'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'landing_footer' LIMIT 1);
|
||||
|
||||
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`, `type`)
|
||||
SELECT 'deposit_sms_support_number', '', 'شماره تماس پشتیبانی', 1, 1,
|
||||
'شماره تماس پشتیبانی که در صفحه واریز، درباره ما و قوانین به مشتری نشان داده میشود. با کلیک، تماس تلفنی برقرار میشود.', 'number'
|
||||
@@ -2137,6 +2197,47 @@ UPDATE `settings` SET
|
||||
`description` = 'روشن: چت پشتیبانی در اپ مشتری نمایش داده میشود (فقط وقتی show_to_users_chat هم روشن باشد). خاموش: دکمه و صفحه چت برای کاربر مخفی است.'
|
||||
WHERE `key` = 'has_chat';
|
||||
|
||||
UPDATE `settings` SET
|
||||
`title_fa` = 'لندینگ وبسایت',
|
||||
`type` = 'switch',
|
||||
`can_edit` = 0,
|
||||
`description` = 'روشن: منوی تنظیمات وبسایت در ادمین و تنظیمات لندینگ برای اپ کاربر فعال است. خاموش: منو مخفی است.'
|
||||
WHERE `key` = 'has_landing';
|
||||
|
||||
UPDATE `settings` SET `title_fa` = 'تنظیمات کلی سایت', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'محتوای تنظیمات کلی لندینگ وبسایت. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_site';
|
||||
UPDATE `settings` SET `title_fa` = 'هدر و ناوبری', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'محتوای هدر و ناوبری لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_header';
|
||||
UPDATE `settings` SET `title_fa` = 'هیرو', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'محتوای سکشن هیرو لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_hero';
|
||||
UPDATE `settings` SET `title_fa` = 'لیبلهای قیمت لحظهای', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'لیبلها و متن قیمت لحظهای لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_live_price';
|
||||
UPDATE `settings` SET `title_fa` = 'عنوان ماشین حساب', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'عنوان و متن ماشین حساب لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_calculator';
|
||||
UPDATE `settings` SET `title_fa` = 'امکانات (چرا نیازی طلا)', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'متن امکانات لندینگ (چرا نیازی طلا). در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_feature';
|
||||
UPDATE `settings` SET `title_fa` = 'مراحل شروع', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'متن مراحل شروع لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_steps';
|
||||
UPDATE `settings` SET `title_fa` = 'اعتماد و مجوزها', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'متن اعتماد و مجوزها (بدون اینماد). در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_trust';
|
||||
UPDATE `settings` SET `title_fa` = 'سوالات متداول', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'سوالات متداول لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_faq';
|
||||
UPDATE `settings` SET `title_fa` = 'سکشن پایین صفحه لندینگ برای معرفی', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'متن دعوت به اقدام پایین صفحه لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_buttom_cta';
|
||||
UPDATE `settings` SET `title_fa` = 'فوتر', `type` = 'longtext', `can_edit` = 1,
|
||||
`description` = 'محتوای فوتر لندینگ. در اپ کاربر با get_settings در دسترس است.'
|
||||
WHERE `key` = 'landing_footer';
|
||||
|
||||
-- [super-admin can_edit=0]
|
||||
-- UPDATE `settings` SET
|
||||
-- `title_fa` = 'نمایش چت به کاربران',
|
||||
|
||||
@@ -72,8 +72,10 @@ UPDATE `settings` SET `menu` = CASE
|
||||
'products_site_link_enabled', 'products_site_link_url', 'products_site_link_text', 'has_chat',
|
||||
'enable_conditional_order', 'enable_product_funds', 'has_page_price_trigger', 'has_page_notification',
|
||||
'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',
|
||||
'has_landing'
|
||||
) THEN 'customer_features'
|
||||
WHEN `key` LIKE 'landing_%' THEN 'website_settings'
|
||||
ELSE 'misc'
|
||||
END;
|
||||
|
||||
@@ -108,6 +110,7 @@ UPDATE `settings` SET `show_to_user` = 1 WHERE `key` IN (
|
||||
'fee_deduct_from_gold',
|
||||
'fee_service_charge_percentage',
|
||||
'has_chat',
|
||||
'has_landing',
|
||||
'has_page_earn_money',
|
||||
'has_page_gift_card',
|
||||
'has_page_notification',
|
||||
@@ -148,3 +151,5 @@ UPDATE `settings` SET `show_to_user` = 1 WHERE `key` IN (
|
||||
'wss_path',
|
||||
'zaarbox_api_url'
|
||||
);
|
||||
|
||||
UPDATE `settings` SET `show_to_user` = 1 WHERE `key` LIKE 'landing_%';
|
||||
|
||||
Reference in New Issue
Block a user