composer require mtsung/joymap-coreconfig('joymap.xxxxxxxx');__('joymap::xxxxxxxx');config/filesystems.php
use League\Flysystem\GoogleCloudStorage\PortableVisibilityHandler;
return [
'disks' => [
'gcs' => [
'driver' => 'gcs',
'project_id' => env('GOOGLE_CLOUD_PROJECT_ID', ''),
'key_file' => json_decode(@file_get_contents(base_path(env('GOOGLE_CLOUD_KEY_FILE', null))), true),
'bucket' => env('GOOGLE_CLOUD_STORAGE_BUCKET', ''),
'path_prefix' => env('GOOGLE_CLOUD_STORAGE_PATH_PREFIX', ''),
'storage_api_uri' => env('GOOGLE_CLOUD_STORAGE_API_URI', null),
'visibility' => PortableVisibilityHandler::NO_PREDEFINED_VISIBILITY,
'throw' => true,
],
],
];config/image.php
return [
'driver' => 'imagick'
];config/code.php
return [
'http_status_code' =>[
41000 => 422,
41001 => 422,
51000 => 500,
],
];app/Exceptions/Handler.php
public function render($request, Throwable $e): Response
{
if ($this->shouldReport($e)) {
$message = LineNotification::getMsgText($e);
event(new SendErrorNotifyEvent($message));
}
return parent::render($request, $e);
}# 本機
APP_ENV=local
# 測試機
APP_ENV=testing
# 正式機
APP_ENV=production
PAY_CHANNEL=spgateway
# Hitrust 參數
HITRUST_URL='https://testtrustlink.hitrust.com.tw/TrustLink/TrxReqForJava'
# 白名單網域
HITRUST_REFERER_URL='https://member-test.twdd.tw'
HITRUST_RETURN_URL='https://webapi-test.joymap.tw/credit-card/return'
HITRUST_CALLBACK_URL='https://webapi-test.joymap.tw/credit-card/callback'
# 智付通/藍新
# 退刷
SPGATEWAY_CLOSE_URL='https://ccore.newebpay.com/API/CreditCard/Close'
# 取消授權
SPGATEWAY_CANCEL_URL='https://ccore.newebpay.com/API/CreditCard/Cancel'
# 授權
SPGATEWAY_CREDIT_CARD_URL='https://ccore.newebpay.com/API/CreditCard'
# 查詢訂單
SPGATEWAY_QUERY_URL='https://ccore.newebpay.com/API/QueryTradeInfo'
# 金流合作推廣商 平台費用扣款
SPGATEWAY_CHARGE_INSTRUCT_URL='https://ccore.newebpay.com/API/ChargeInstruct'
# PartnerID_
SPGATEWAY_STORE_PARTNER_ID='TWDD'
SPGATEWAY_MERCHANT_HASH_KEY=''
SPGATEWAY_MERCHANT_IV_KEY=''
SPGATEWAY_MERCHANT_PREFIX=''
SPGATEWAY_PAY_NOTIFY_URL=''
SPGATEWAY_PAY_RETURN_URL=''
SPGATEWAY_BIND_NOTIFY_URL=''
SPGATEWAY_BIND_RETURN_URL=''
# 建立商店相關參數
SPGATEWAY_STORE_AGREED_FEE=
SPGATEWAY_STORE_AGREED_DAY=
SPGATEWAY_CREATE_STORE_URL='https://ccore.newebpay.com/API/AddMerchant'
SPGATEWAY_CREATE_STORE_VERSION=1.2
# 修改商店相關參數
SPGATEWAY_UPDATE_STORE_URL='https://ccore.newebpay.com/API/AddMerchant/modify'
SPGATEWAY_UPDATE_STORE_VERSION=1.0
NOTIFICATION_CHANNEL=fcm_v1
# FCM 推播設定 (2024/06 棄用)
FCM_URL='https://fcm.googleapis.com/fcm/send'
FCM_KEY=
# FCM V1
GOOGLE_APPLICATION_CREDENTIALS=../storage/firebase_key.json
FCM_V1_URL='https://fcm.googleapis.com/v1/projects/joymap-android/messages:send'
FCM_V1_TOPIC_URL='https://iid.googleapis.com/iid/v1:batchAdd'
# GORUSH 推播設定
GORUSH_HOST='http://localhost'
GORUSH_PORT=9999
GORUSH_PATH='/api/push'
GORUSH_TOPIC_MEMBER=
GORUSH_TOPIC_STORE='com.ChyunYueh.JoyShop'
# Joymap API Url
API_URL='https://api-test.joymap.tw'
# Joymap WEBAPI Url
WEBAPI_URL='https://webapi-test.joymap.tw'
# Joymap WWW Url
WWW_URL='https://www-test.joymap.tw'
# Joymap Booking Url
ORDER_DOMAIN='https://web-test.joymap.tw'
# Joymap Google Dining Url
GOOGLE_DINING_URL='https://google-dining-test.joymap.tw'
# GCS
GOOGLE_CLOUD_PROJECT_ID=api-project-288918646937
GOOGLE_CLOUD_KEY_FILE=storage/gcs_key.json
GOOGLE_CLOUD_STORAGE_BUCKET=joymap-store
GOOGLE_CLOUD_STORAGE_PATH_PREFIX=
GOOGLE_CLOUD_STORAGE_API_URI='https://storage.googleapis.com/'
# Error 時是否發送到 LINE NOTIFY
SEND_ERROR_LOG_LINE=false
LINE_NOTIFY_TOKEN=
SEND_ERROR_LOG_DISCORD=false
DISCORD_NOTIFY_TOKEN=''
DISCORD_NOTIFY_CHANNEL_ID=''
DISCORD_NOTIFY_ROLE_ID=''
SMS_CHANNEL=infobip
INFOBIP_URL='https://39wzv.api.infobip.com/sms/2/text/advanced'
INFOBIP_KEY=
INFOBIP_FROM=JOYMAP
JCOIN_URL='https://jcoin-test.joymap.tw'
# joymap jcoin user
JCOIN_USER=''
JCOIN_PW=''
# twdd jcoin user
TWDD_JCOIN_USER=''
TWDD_JCOIN_PW=''
# 會員凍結天數
MEMBER_DELETE_DAYS=31
# 萬用手機驗證碼
SUPER_PHONE_CHECK_CODE='JM-112233'
# 手機驗證碼存活時間(分鐘)
PHONE_VERIFY_CODE_EXPIRED_MIN=10
# 超過 N 秒就記 Slow Log
SLOW_REQUEST_SECOND