setting changed 3

This commit is contained in:
2026-06-05 22:28:32 +03:30
parent c082e5eb42
commit b9e90a13ca
10 changed files with 3958 additions and 13 deletions
-1
View File
@@ -17,7 +17,6 @@ return [
'zaarbox_price_key' => '', 'zaarbox_price_key' => '',
/** UUID نمودار Zaarbox — خالی = پیش‌فرض ca3800a0-... در ZaarboxPriceService */ /** UUID نمودار Zaarbox — خالی = پیش‌فرض ca3800a0-... در ZaarboxPriceService */
'chart_id' => '', 'chart_id' => '',
'price_method' => '',
'register_jibit_verify' => false, 'register_jibit_verify' => false,
'register_referral_sms_to_referrer' => false, 'register_referral_sms_to_referrer' => false,
'register_referral_bonus_message' => false, 'register_referral_bonus_message' => false,
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,931 @@
-- patch بعد از اجرای ناقص — فقط charset + UPDATE
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `settings`
MODIFY COLUMN `description` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
MODIFY COLUMN `title_fa` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL,
MODIFY COLUMN `type` VARCHAR(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
START TRANSACTION;
UPDATE `settings` SET
`title_fa` = 'آدرس پنل ادمین',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'https://app.abshodehrahimi.ir/admin/',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'admin_url';
UPDATE `settings` SET
`title_fa` = 'آدرس اپ (کاربر)',
`can_edit` = 1,
`type` = 'text',
`description` = '0inserver',
`value` = 'https://app.abshodehrahimi.ir',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'app_url';
UPDATE `settings` SET
`title_fa` = 'فعال‌سازی خودکار کاربر',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'auto_active_customer';
UPDATE `settings` SET
`title_fa` = 'آدرس پایه',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '91.212.174.137',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'bace_url';
UPDATE `settings` SET
`title_fa` = 'حذف مشتری از تراز ادمین',
`can_edit` = 0,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'balance_report_exclude_customer_id';
UPDATE `settings` SET
`title_fa` = 'توکن بات بله',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'bale_bot_token';
UPDATE `settings` SET
`title_fa` = 'سود/اختلاف خرید (ریال)',
`can_edit` = 1,
`type` = 'number',
`description` = 'اگر خالی باشد از fee_single',
`value` = '0',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'buy_fee';
UPDATE `settings` SET
`title_fa` = 'پیامک شارژ ادمین',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'charge_notif';
UPDATE `settings` SET
`title_fa` = 'UUID نمودار Zaarbox',
`can_edit` = 1,
`type` = 'text',
`description` = 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'chart_id';
UPDATE `settings` SET
`title_fa` = 'بستن قیمت در بازه زمانی',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'close_price';
UPDATE `settings` SET
`title_fa` = 'رنگ اصلی',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '#0A1B37',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'color_primary';
UPDATE `settings` SET
`title_fa` = 'رنگ ثانویه',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '#0A1B37',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'color_secondary';
UPDATE `settings` SET
`title_fa` = 'نمایش بلوک همکار در UI',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'display_montzar';
UPDATE `settings` SET
`title_fa` = 'کمترین قیمت امروز',
`can_edit` = 0,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'down_price';
UPDATE `settings` SET
`title_fa` = 'پایان بازه معامله',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '20:30',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'endDay';
UPDATE `settings` SET
`title_fa` = 'آدرس API اتحادیه (پشتیبان)',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'etehadie_api_url';
UPDATE `settings` SET
`title_fa` = 'فعال‌سازی API سفارش خارجی (get_wallet / order)',
`can_edit` = 1,
`type` = NULL,
`description` = 'true + node_client_id + node_shared_secret',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'external_order_api_enabled';
UPDATE `settings` SET
`title_fa` = 'اختلاف ریالی هر گرم (سفارش)',
`can_edit` = 1,
`type` = 'number',
`description` = 'goldAliii: 0',
`value` = '500000',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'fee_cash';
UPDATE `settings` SET
`title_fa` = 'تعداد سفارش اول بدون کارمزد',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = '0',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'fee_free';
UPDATE `settings` SET
`title_fa` = 'درصد کارمزد سفارش',
`can_edit` = 1,
`type` = 'number',
`description` = 'goldAliii: 7%',
`value` = '0.005',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'fee_service_charge_percentage';
UPDATE `settings` SET
`title_fa` = 'اختلاف قیمت پایه (ریال)',
`can_edit` = 1,
`type` = 'number',
`description` = 'پیش‌فرض Laravel fee.single',
`value` = '500000',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'fee_single';
UPDATE `settings` SET
`title_fa` = 'پاداش معرف‌شونده',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'gift_for_referral';
UPDATE `settings` SET
`title_fa` = 'پاداش معرف',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '0.005',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'gift_for_referrer';
UPDATE `settings` SET
`title_fa` = 'پیامک گروهی',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'group_sms';
UPDATE `settings` SET
`title_fa` = 'چت پشتیبانی',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_chat';
UPDATE `settings` SET
`title_fa` = 'صفحه کسب درآمد',
`can_edit` = 1,
`type` = 'switch',
`description` = 'in server',
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_page_earn_money';
UPDATE `settings` SET
`title_fa` = 'صفحه صندوق',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_page_fund';
UPDATE `settings` SET
`title_fa` = 'صفحه مجوزها',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_page_permission';
UPDATE `settings` SET
`title_fa` = 'صفحه طلای فیزیکی',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_page_physical_gold';
UPDATE `settings` SET
`title_fa` = 'صفحه هشدار قیمت',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'has_page_price_trigger';
UPDATE `settings` SET
`title_fa` = 'کد معرف اجباری (قدیمی)',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'is_requaire_referral';
UPDATE `settings` SET
`title_fa` = 'تأیید کارت بانکی با جیبیت',
`can_edit` = 1,
`type` = 'switch',
`description` = 'true/false — BankAccountController',
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'jibit_verification';
UPDATE `settings` SET
`title_fa` = 'کلید داخلی اپ',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'abshodehrahimi',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'key';
UPDATE `settings` SET
`title_fa` = '',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'logo_login
',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'logo_login';
UPDATE `settings` SET
`title_fa` = 'لوگوی صفحه ورود',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'logo_register',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'logo_register';
UPDATE `settings` SET
`title_fa` = 'قیمت صفحه اصلی',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'main_product';
UPDATE `settings` SET
`title_fa` = 'قیمت از محصول (legacy)',
`can_edit` = 1,
`type` = 'switch',
`description` = 'از price_provider استفاده کنید',
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'main_product_price';
UPDATE `settings` SET
`title_fa` = 'عنوان فلز در UI',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'metal_type';
UPDATE `settings` SET
`title_fa` = 'حداقل اولین خرید (ریال)',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'min_first_buy';
UPDATE `settings` SET
`title_fa` = 'حداقل برداشت (ریال)',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'min_withdraw';
UPDATE `settings` SET
`title_fa` = 'حداقل فروش',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'minimum_sell';
UPDATE `settings` SET
`title_fa` = 'نام فروشگاه',
`can_edit` = 1,
`type` = 'text',
`description` = 'RequestsController — اختیاری',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'montify_name';
UPDATE `settings` SET
`title_fa` = 'آدرس سرور همکار',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'https://abshodehrahimi.ir',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_base_url';
UPDATE `settings` SET
`title_fa` = 'بسته بودن همکار',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_closed';
UPDATE `settings` SET
`title_fa` = 'اختلاف قیمت همکار',
`can_edit` = 0,
`type` = 'text',
`description` = 'سیستم پر می‌کند',
`value` = '334733.67434615',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_diff';
UPDATE `settings` SET
`title_fa` = 'قیمت لحظه‌ای همکار',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '183572564.02763',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_live_price';
UPDATE `settings` SET
`title_fa` = 'مظنه همکار',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '795200000',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_mazaneh';
UPDATE `settings` SET
`title_fa` = 'موبایل API همکار',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '09133745569',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_mobile';
UPDATE `settings` SET
`title_fa` = 'باز بودن خرید همکار',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_open_buy';
UPDATE `settings` SET
`title_fa` = 'باز بودن فروش همکار',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_open_sell';
UPDATE `settings` SET
`title_fa` = 'رمز API همکار',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '09133745569',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_password';
UPDATE `settings` SET
`title_fa` = 'قیمت از همکار (montzar)',
`can_edit` = 1,
`type` = 'switch',
`description` = 'گلد علی: false — zaarbox فعال',
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_price';
UPDATE `settings` SET
`title_fa` = 'کد محصول همکار',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '1',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_product_id';
UPDATE `settings` SET
`title_fa` = 'توکن همکار (خودکار)',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2xpbWFuZ29sZC5pci9zZXJ2ZXIvYXV0aC9sb2dpbiIsImlhdCI6MTc3OTcxNTkxMywiZXhwIjoxNzgyMzA3OTEzLCJuYmYiOjE3Nzk3MTU5MTMsImp0aSI6ImZ4SDkwcWV4eHRiTmx5RUUiLCJzdWIiOiIzMzQ2IiwicHJ2IjoiMWQwYTAyMGFjZjVjNGI2YzQ5Nzk4OWRmMWFiZjBmYmQ0ZThjOGQ2MyJ9.M_Yff36nYQ94p8HnjB2wuHEQJaZTgW6Ppr-PRTXkyHE',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_token';
UPDATE `settings` SET
`title_fa` = 'مظنه خرید همکار',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '796650000',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_truly_buy_mazaneh';
UPDATE `settings` SET
`title_fa` = 'مظنه فروش همکار',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '793750000',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'montzar_truly_sell_mazaneh';
UPDATE `settings` SET
`title_fa` = 'نام انگلیسی اپ',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'abshode_rahimi',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'name_en';
UPDATE `settings` SET
`title_fa` = 'نام فارسی اپ',
`can_edit` = 1,
`type` = 'text',
`description` = 'پلتفرم خرید و فروش آنلاین طلای آبشده . اولین ایده پرداز قلک طلا در ایران',
`value` = 'آبشده رحیمی',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'name_fa';
UPDATE `settings` SET
`title_fa` = 'شناسه کلاینت API خارجی (X-Client-Id)',
`can_edit` = 1,
`type` = NULL,
`description` = 'مقدار قبلی .env: NODE_CLIENT_ID',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'node_client_id';
UPDATE `settings` SET
`title_fa` = 'کلید امضای HMAC API خارجی',
`can_edit` = 1,
`type` = NULL,
`description` = 'مقدار قبلی .env: NODE_SHARED_SECRET',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'node_shared_secret';
UPDATE `settings` SET
`title_fa` = 'ثبت‌نام باز',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'open_register';
UPDATE `settings` SET
`title_fa` = 'customer_id fin',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_fin_customer_id';
UPDATE `settings` SET
`title_fa` = 'همگام‌سازی fin لیمان',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_fin_sync_enabled';
UPDATE `settings` SET
`title_fa` = 'توکن fin',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_fin_token';
UPDATE `settings` SET
`title_fa` = 'URL fin',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_fin_url';
UPDATE `settings` SET
`title_fa` = 'item تکی (legacy)',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_gateway_item';
UPDATE `settings` SET
`title_fa` = 'لیست item (چرخشی)',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_gateway_items';
UPDATE `settings` SET
`title_fa` = 'نام gateway درگاه',
`can_edit` = 1,
`type` = 'select',
`description` = 'sepal,',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_gateway_name';
UPDATE `settings` SET
`title_fa` = 'گرد کردن مبلغ به تومان',
`can_edit` = 0,
`type` = 'switch',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_round_toman';
UPDATE `settings` SET
`title_fa` = 'آدرس شروع درگاه',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_start_url';
UPDATE `settings` SET
`title_fa` = 'اولویت تراکنش ناموفق',
`can_edit` = 0,
`type` = 'switch',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_strict_failed_withdraw';
UPDATE `settings` SET
`title_fa` = 'آدرس تأیید درگاه',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'payping_verify_url';
UPDATE `settings` SET
`title_fa` = 'تاریخ min/max روز',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'price_extreme_date';
UPDATE `settings` SET
`title_fa` = 'منبع قیمت',
`can_edit` = 1,
`type` = 'select',
`description` = 'montzar,zaarbox,main_product,etehadie,taban_gohar',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'price_provider';
UPDATE `settings` SET
`title_fa` = 'باز/بسته خودکار محصول',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'product_auto_close_open_on_list';
UPDATE `settings` SET
`title_fa` = 'بروز قیمت در لیست محصول',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'true',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'product_update_price_on_list';
UPDATE `settings` SET
`title_fa` = 'API سود طلا',
`can_edit` = 0,
`type` = 'switch',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'profit_gold_api_enabled';
UPDATE `settings` SET
`title_fa` = 'مبلغ پاداش معرف',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'referral_bonus_amount';
UPDATE `settings` SET
`title_fa` = 'تعداد معرف برای هدیه',
`can_edit` = 1,
`type` = 'number',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'referral_count_for_gift';
UPDATE `settings` SET
`title_fa` = 'الزام کد معرف',
`can_edit` = 0,
`type` = 'select',
`description` = 'required,',
`value` = 'required',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'referral_id';
UPDATE `settings` SET
`title_fa` = 'محدودیت دعوت',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'referral_limit';
UPDATE `settings` SET
`title_fa` = 'تأیید کدملی/موبایل در ثبت‌نام',
`can_edit` = 1,
`type` = 'switch',
`description` = 'AuthController',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'register_jibit_verify';
UPDATE `settings` SET
`title_fa` = 'پیام پاداش در SMS ثبت‌نام',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'register_referral_bonus_message';
UPDATE `settings` SET
`title_fa` = 'SMS به معرف هنگام ثبت‌نام',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'register_referral_sms_to_referrer';
UPDATE `settings` SET
`title_fa` = 'سود/اختلاف فروش (ریال)',
`can_edit` = 1,
`type` = 'number',
`description` = 'اگر خالی باشد از fee_single',
`value` = '0',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'sell_fee';
UPDATE `settings` SET
`title_fa` = 'ارسال ته‌حساب',
`can_edit` = 0,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'send_to_tahesab';
UPDATE `settings` SET
`title_fa` = 'آدرس API سرور',
`can_edit` = 1,
`type` = 'text',
`description` = 'in server',
`value` = 'https://app.abshodehrahimi.ir/api',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'server_url';
UPDATE `settings` SET
`title_fa` = 'نمایش آخرین قیمت DB اگر API قطع شد',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'show_last_price';
UPDATE `settings` SET
`title_fa` = 'شروع بازه معامله',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '11:00',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'startDay';
UPDATE `settings` SET
`title_fa` = 'قیمت تابان گوهر',
`can_edit` = 1,
`type` = 'switch',
`description` = NULL,
`value` = 'false',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'tabanGohar_price';
UPDATE `settings` SET
`title_fa` = 'حساب بانکی ته‌حساب',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'کشاورزي قلک',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'tahesab_bank_account';
UPDATE `settings` SET
`title_fa` = 'دیتابیس ته‌حساب',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'TahesabDB5',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'tahesab_db';
UPDATE `settings` SET
`title_fa` = 'توکن ته‌حساب',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = 'X4V2Q8J1C4P1A7P7P5K2E6X2U1L8D4E4Y8N5Q4O6N2R6L2H1W1S1W1N1E5F6A8F7N4U2X4J4B4R2R2W2',
`is_active` = 1,
`updated_at` = NOW()
WHERE `key` = 'tahesab_token';
UPDATE `settings` SET
`title_fa` = 'توکن بات تلگرام',
`can_edit` = 0,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'telegram_bot_token';
UPDATE `settings` SET
`title_fa` = '',
`can_edit` = 1,
`type` = 'text',
`description` = 'تستی است',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'test*';
UPDATE `settings` SET
`title_fa` = 'متن درباره ما',
`can_edit` = 1,
`type` = 'longtext',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'text_about';
UPDATE `settings` SET
`title_fa` = 'متن قوانین',
`can_edit` = 1,
`type` = 'longtext',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'text_rule';
UPDATE `settings` SET
`title_fa` = 'عنوان favicon',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'title_fav';
UPDATE `settings` SET
`title_fa` = 'عنوان PWA',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'title_pwa';
UPDATE `settings` SET
`title_fa` = 'بیشترین قیمت امروز',
`can_edit` = 0,
`type` = 'number',
`description` = 'ReportController',
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'up_price';
UPDATE `settings` SET
`title_fa` = 'url زرباکس',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'zaarbox_api_url';
UPDATE `settings` SET
`title_fa` = 'کد محصول زرباکس',
`can_edit` = 1,
`type` = 'text',
`description` = NULL,
`value` = '',
`is_active` = 0,
`updated_at` = NOW()
WHERE `key` = 'zaarbox_price_key';
COMMIT;
@@ -0,0 +1,117 @@
-- =============================================================================
-- آبشده رحیمی — ادغام const با کاتالوگ goldAliii
--
-- منبع مقادیر: abshode_rahimi.json (const)
-- قالب: 10 کلید goldali
-- =============================================================================
START TRANSACTION;
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `const`
MODIFY COLUMN `title_fa` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
-- 1) INSERT
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'limited_price', '', 'سقف قیمت محدود'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'limited_price' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'is_gateway_open', '', 'باز بودن درگاه پرداخت'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'is_gateway_open' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'liman', '', 'توکن لیمان'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'liman' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'header_banner', '[{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/748a08082c0e8ec016fc27ae22c62a56.jpg","show":false,"caption":null,"link":"تست","typeClick":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/cba70a6204dc579b86f3d96c314410da.jpg","show":false,"caption":null,"link":null,"typeClick":null,"modalText":"<p>تست</p>"},{"icon":"https://garoosigholaktala.ir/server/storage/1405/02/28/cfd03bf5f8b0ddd086ded30ec4a45c51.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null},{"icon":"https://garoosigholaktala.ir/server/storage/1405/02/29/a12b0d4db1c1a040562f71725b39c42d.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null},{"icon":"https://garoosigholaktala.ir/server/storage/1405/03/04/8816eb105fe2fe8c2bcb111214bd829f.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null}]', 'بنر بالای صفحه'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'header_banner' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'app_closed', 'false', 'بسته بودن اپ'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'app_closed' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'main_product', '13', 'محصول آبشده پیش‌فرض'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'main_product' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'gram', '', 'گرم ثبت‌نام'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'gram' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'first_customer_wallet_value', '', 'حداقل اولین خرید'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'first_customer_wallet_value' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'jibit_counter', '0', 'شمارنده جیبیت'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'jibit_counter' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'price', '', 'لیست قیمت TGJU (JSON)'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'price' LIMIT 1);
-- 2) UPDATE
UPDATE `const` SET
`title_fa` = 'سقف قیمت محدود',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'limited_price';
UPDATE `const` SET
`title_fa` = 'باز بودن درگاه پرداخت',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'is_gateway_open';
UPDATE `const` SET
`title_fa` = 'توکن لیمان',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'liman';
UPDATE `const` SET
`title_fa` = 'بنر بالای صفحه',
`value` = '[{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/748a08082c0e8ec016fc27ae22c62a56.jpg","show":false,"caption":null,"link":"تست","typeClick":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/cba70a6204dc579b86f3d96c314410da.jpg","show":false,"caption":null,"link":null,"typeClick":null,"modalText":"<p>تست</p>"},{"icon":"https://garoosigholaktala.ir/server/storage/1405/02/28/cfd03bf5f8b0ddd086ded30ec4a45c51.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null},{"icon":"https://garoosigholaktala.ir/server/storage/1405/02/29/a12b0d4db1c1a040562f71725b39c42d.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null},{"icon":"https://garoosigholaktala.ir/server/storage/1405/03/04/8816eb105fe2fe8c2bcb111214bd829f.jpg","show":true,"caption":null,"link":null,"typeClick":null,"modalText":null}]',
`updated_at` = NOW()
WHERE `key` = 'header_banner';
UPDATE `const` SET
`title_fa` = 'بسته بودن اپ',
`value` = 'false',
`updated_at` = NOW()
WHERE `key` = 'app_closed';
UPDATE `const` SET
`title_fa` = 'محصول آبشده پیش‌فرض',
`value` = '13',
`updated_at` = NOW()
WHERE `key` = 'main_product';
UPDATE `const` SET
`title_fa` = 'گرم ثبت‌نام',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'gram';
UPDATE `const` SET
`title_fa` = 'حداقل اولین خرید',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'first_customer_wallet_value';
UPDATE `const` SET
`title_fa` = 'شمارنده جیبیت',
`value` = '0',
`updated_at` = NOW()
WHERE `key` = 'jibit_counter';
UPDATE `const` SET
`title_fa` = 'لیست قیمت TGJU (JSON)',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'price';
-- 3) DELETE (14 کلید: goldir_*, log, ...)
DELETE FROM `const`
WHERE `key` NOT IN (
'limited_price',
'is_gateway_open',
'liman',
'header_banner',
'app_closed',
'main_product',
'gram',
'first_customer_wallet_value',
'jibit_counter',
'price'
);
COMMIT;
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,132 @@
-- =============================================================================
-- بورس مس — ادغام const با کاتالوگ goldAliii
--
-- منبع مقادیر: bourcecu.json
-- قالب کلیدها: goldali.json (10 کلید)
--
-- قوانین:
-- • کلید مشترک + مقدار در بورس مس → value از بورس مس
-- • کلید کاتالوگ بدون مقدار در بورس مس → value=''
-- • title_fa از کاتالوگ goldAliii
-- • کلیدهای اضافی بورس مس (goldir_*, log, ...) → DELETE
--
-- قبل از اجرا: USE دیتابیس بورس مس + بکاپ
-- =============================================================================
START TRANSACTION;
SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `const`
MODIFY COLUMN `title_fa` VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL;
-- =============================================================================
-- 1) INSERT کلیدهای کاتالوگ که هنوز در DB نیستند
-- =============================================================================
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'limited_price', '', 'سقف قیمت محدود'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'limited_price' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'is_gateway_open', '', 'باز بودن درگاه پرداخت'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'is_gateway_open' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'liman', '', 'توکن لیمان'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'liman' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'header_banner', '[{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/b99fc0b5d1cd0dc343338b1f73dd3cab.jpg","show":true,"caption":null,"link":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/748a08082c0e8ec016fc27ae22c62a56.jpg","show":true,"caption":null,"link":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/cba70a6204dc579b86f3d96c314410da.jpg","show":true,"caption":null,"link":null}]', 'بنر بالای صفحه'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'header_banner' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'app_closed', '', 'بسته بودن اپ'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'app_closed' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'main_product', '1', 'محصول آبشده پیش‌فرض'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'main_product' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'gram', '', 'گرم ثبت‌نام'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'gram' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'first_customer_wallet_value', '', 'حداقل اولین خرید'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'first_customer_wallet_value' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'jibit_counter', '1', 'شمارنده جیبیت'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'jibit_counter' LIMIT 1);
INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'price', '', 'لیست قیمت TGJU (JSON)'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'price' LIMIT 1);
-- =============================================================================
-- 2) UPDATE همه کلیدهای کاتالوگ
-- =============================================================================
UPDATE `const` SET
`title_fa` = 'سقف قیمت محدود',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'limited_price';
UPDATE `const` SET
`title_fa` = 'باز بودن درگاه پرداخت',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'is_gateway_open';
UPDATE `const` SET
`title_fa` = 'توکن لیمان',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'liman';
UPDATE `const` SET
`title_fa` = 'بنر بالای صفحه',
`value` = '[{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/b99fc0b5d1cd0dc343338b1f73dd3cab.jpg","show":true,"caption":null,"link":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/748a08082c0e8ec016fc27ae22c62a56.jpg","show":true,"caption":null,"link":null},{"icon":"https://garoosigholaktala.ir/server/storage/1404/12/03/cba70a6204dc579b86f3d96c314410da.jpg","show":true,"caption":null,"link":null}]',
`updated_at` = NOW()
WHERE `key` = 'header_banner';
UPDATE `const` SET
`title_fa` = 'بسته بودن اپ',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'app_closed';
UPDATE `const` SET
`title_fa` = 'محصول آبشده پیش‌فرض',
`value` = '1',
`updated_at` = NOW()
WHERE `key` = 'main_product';
UPDATE `const` SET
`title_fa` = 'گرم ثبت‌نام',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'gram';
UPDATE `const` SET
`title_fa` = 'حداقل اولین خرید',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'first_customer_wallet_value';
UPDATE `const` SET
`title_fa` = 'شمارنده جیبیت',
`value` = '1',
`updated_at` = NOW()
WHERE `key` = 'jibit_counter';
UPDATE `const` SET
`title_fa` = 'لیست قیمت TGJU (JSON)',
`value` = '',
`updated_at` = NOW()
WHERE `key` = 'price';
-- =============================================================================
-- 3) حذف کلیدهای اضافی بورس مس (خارج از کاتالوگ)
-- 14 کلید: goldir_*, log, last_order_log, ...
-- =============================================================================
DELETE FROM `const`
WHERE `key` NOT IN (
'limited_price',
'is_gateway_open',
'liman',
'header_banner',
'app_closed',
'main_product',
'gram',
'first_customer_wallet_value',
'jibit_counter',
'price'
);
COMMIT;
@@ -0,0 +1,2 @@
-- حذف setting legacy: price_method (در کد استفاده نمی‌شود؛ جایگزین: price_provider + zaarbox_price_key)
DELETE FROM `settings` WHERE `key` = 'price_method';
+2 -4
View File
@@ -44,7 +44,6 @@ UPDATE `settings` SET `title_fa` = 'تعداد معرف برای هدیه' WHERE
UPDATE `settings` SET `title_fa` = 'مبلغ پاداش معرف' WHERE `key` = 'referral_bonus_amount' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = ''); UPDATE `settings` SET `title_fa` = 'مبلغ پاداش معرف' WHERE `key` = 'referral_bonus_amount' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
UPDATE `settings` SET `title_fa` = 'حداقل برداشت (ریال)' WHERE `key` = 'min_withdraw' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = ''); UPDATE `settings` SET `title_fa` = 'حداقل برداشت (ریال)' WHERE `key` = 'min_withdraw' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
UPDATE `settings` SET `title_fa` = 'حداقل اولین خرید (ریال)' WHERE `key` = 'min_first_buy' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = ''); UPDATE `settings` SET `title_fa` = 'حداقل اولین خرید (ریال)' WHERE `key` = 'min_first_buy' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
UPDATE `settings` SET `title_fa` = 'کلید محصول در API اتحادیه' WHERE `key` = 'price_method' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
UPDATE `const` SET `title_fa` = 'سقف قیمت محدود' WHERE `key` = 'limited_price' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = ''); UPDATE `const` SET `title_fa` = 'سقف قیمت محدود' WHERE `key` = 'limited_price' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
UPDATE `const` SET `title_fa` = 'باز بودن درگاه پرداخت' WHERE `key` = 'is_gateway_open' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = ''); UPDATE `const` SET `title_fa` = 'باز بودن درگاه پرداخت' WHERE `key` = 'is_gateway_open' AND (`title_fa` IS NULL OR TRIM(`title_fa`) = '');
@@ -117,8 +116,7 @@ INSERT INTO `const` (`key`, `value`, `title_fa`)
SELECT 'first_customer_wallet_value', '0', 'حداقل موجودی اول خرید' SELECT 'first_customer_wallet_value', '0', 'حداقل موجودی اول خرید'
WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'first_customer_wallet_value' LIMIT 1); WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'first_customer_wallet_value' LIMIT 1);
-- price_method را دست نمی‌زنیم — روی گلد علی همین است: -- legacy price_method حذف شد — از price_provider + zaarbox_price_key استفاده کنید.
-- estjt_41670cdf0270a874b68a0a95a235f9a1
-- ============================================================================= -- =============================================================================
-- بخش ۳ب — درگاه پرداخت گلد علی (payment.goldaliii.com) -- بخش ۳ب — درگاه پرداخت گلد علی (payment.goldaliii.com)
@@ -169,7 +167,7 @@ WHERE NOT EXISTS (SELECT 1 FROM `const` WHERE `key` = 'app_closed' LIMIT 1);
-- ============================================================================= -- =============================================================================
-- SELECT `key`, `title_fa`, `value` FROM `settings` -- SELECT `key`, `title_fa`, `value` FROM `settings`
-- WHERE `key` IN ( -- WHERE `key` IN (
-- 'price_provider', 'price_method', 'profit_gold_api_enabled', -- 'price_provider', 'profit_gold_api_enabled',
-- 'fee_single', 'buy_fee', 'sell_fee', -- 'fee_single', 'buy_fee', 'sell_fee',
-- 'referral_id', 'is_requaire_referral', -- 'referral_id', 'is_requaire_referral',
-- 'payping_start_url', 'payping_verify_url', 'payping_gateway_name' -- 'payping_start_url', 'payping_verify_url', 'payping_gateway_name'
@@ -256,9 +256,6 @@ UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'شن
`value` = TRIM(REPLACE(REPLACE(`value`, CHAR(10), ''), CHAR(13), '')) `value` = TRIM(REPLACE(REPLACE(`value`, CHAR(10), ''), CHAR(13), ''))
WHERE `key` = 'zaarbox_price_key'; WHERE `key` = 'zaarbox_price_key';
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'کلید API اتحادیه'), `can_edit` = 1
WHERE `key` = 'price_method';
UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'اختلاف پایه نمایش'), `can_edit` = 1 UPDATE `settings` SET `title_fa` = COALESCE(NULLIF(TRIM(`title_fa`), ''), 'اختلاف پایه نمایش'), `can_edit` = 1
WHERE `key` = 'fee_single'; WHERE `key` = 'fee_single';
@@ -368,7 +365,7 @@ UPDATE `settings` SET `type` = 'number' WHERE `key` IN (
UPDATE `settings` SET `type` = 'text' WHERE `key` IN ( UPDATE `settings` SET `type` = 'text' WHERE `key` IN (
'name_fa', 'name_en', 'app_url', 'bace_url', 'logo_register', 'admin_url', 'title_pwa', 'title_fav', 'name_fa', 'name_en', 'app_url', 'bace_url', 'logo_register', 'admin_url', 'title_pwa', 'title_fav',
'server_url', 'key', 'main_product', 'zaarbox_api_url', 'zaarbox_price_key', 'chart_id', 'server_url', 'key', 'main_product', 'zaarbox_api_url', 'zaarbox_price_key', 'chart_id',
'price_method', 'etehadie_api_url', 'montzar_mobile', 'montzar_password', 'montzar_base_url', 'etehadie_api_url', 'montzar_mobile', 'montzar_password', 'montzar_base_url',
'montzar_token', 'montzar_diff', 'montzar_live_price', 'montzar_mazaneh', 'montzar_token', 'montzar_diff', 'montzar_live_price', 'montzar_mazaneh',
'montzar_truly_buy_mazaneh', 'montzar_truly_sell_mazaneh', 'startDay', 'endDay', 'montzar_truly_buy_mazaneh', 'montzar_truly_sell_mazaneh', 'startDay', 'endDay',
'payping_start_url', 'payping_verify_url', 'payping_gateway_items', 'payping_fin_url', 'payping_start_url', 'payping_verify_url', 'payping_gateway_items', 'payping_fin_url',
@@ -36,10 +36,6 @@ INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `de
SELECT 'chart_id', '', 'UUID نمودار Zaarbox', 1, 1, 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f' SELECT 'chart_id', '', 'UUID نمودار Zaarbox', 1, 1, 'خالی = ca3800a0-1f57-3528-b963-178f9168e04f'
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'chart_id' LIMIT 1); WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'chart_id' LIMIT 1);
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
SELECT 'price_method', '', 'کلید محصول API اتحادیه (legacy)', 1, 1, NULL
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'price_method' LIMIT 1);
INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`) INSERT INTO `settings` (`key`, `value`, `title_fa`, `can_edit`, `is_active`, `description`)
SELECT 'etehadie_api_url', 'http://109.122.246.48:4949/api/free', 'آدرس API اتحادیه', 1, 1, NULL SELECT 'etehadie_api_url', 'http://109.122.246.48:4949/api/free', 'آدرس API اتحادیه', 1, 1, NULL
WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'etehadie_api_url' LIMIT 1); WHERE NOT EXISTS (SELECT 1 FROM `settings` WHERE `key` = 'etehadie_api_url' LIMIT 1);