repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Forms/SystemSetting.php
app/Admin/Forms/SystemSetting.php
<?php namespace App\Admin\Forms; use App\Models\BaseModel; use Dcat\Admin\Widgets\Form; use Illuminate\Support\Facades\Cache; class SystemSetting extends Form { /** * Handle the form request. * * @param array $input * * @return mixed */ public function handle(array $input) { Cache::put('system-setting', $input); return $this ->response() ->success(admin_trans('system-setting.rule_messages.save_system_setting_success')); } /** * Build a form here. */ public function form() { $this->tab(admin_trans('system-setting.labels.base_setting'), function () { $this->text('title', admin_trans('system-setting.fields.title'))->required(); $this->image('img_logo', admin_trans('system-setting.fields.img_logo')); $this->text('text_logo', admin_trans('system-setting.fields.text_logo')); $this->text('keywords', admin_trans('system-setting.fields.keywords')); $this->textarea('description', admin_trans('system-setting.fields.description')); $this->select('template', admin_trans('system-setting.fields.template')) ->options(config('dujiaoka.templates')) ->required(); $this->select('language', admin_trans('system-setting.fields.language')) ->options(config('dujiaoka.language')) ->required(); $this->text('manage_email', admin_trans('system-setting.fields.manage_email')); $this->number('order_expire_time', admin_trans('system-setting.fields.order_expire_time')) ->default(5) ->required(); $this->switch('is_open_anti_red', admin_trans('system-setting.fields.is_open_anti_red')) ->default(BaseModel::STATUS_CLOSE); $this->switch('is_open_img_code', admin_trans('system-setting.fields.is_open_img_code')) ->default(BaseModel::STATUS_CLOSE); $this->switch('is_open_search_pwd', admin_trans('system-setting.fields.is_open_search_pwd')) ->default(BaseModel::STATUS_CLOSE); $this->switch('is_open_google_translate', admin_trans('system-setting.fields.is_open_google_translate')) ->default(BaseModel::STATUS_CLOSE); $this->editor('notice', admin_trans('system-setting.fields.notice')); $this->textarea('footer', admin_trans('system-setting.fields.footer')); }); $this->tab(admin_trans('system-setting.labels.order_push_setting'), function () { $this->switch('is_open_server_jiang', admin_trans('system-setting.fields.is_open_server_jiang')) ->default(BaseModel::STATUS_CLOSE); $this->text('server_jiang_token', admin_trans('system-setting.fields.server_jiang_token')); $this->switch('is_open_telegram_push', admin_trans('system-setting.fields.is_open_telegram_push')) ->default(BaseModel::STATUS_CLOSE); $this->text('telegram_bot_token', admin_trans('system-setting.fields.telegram_bot_token')); $this->text('telegram_userid', admin_trans('system-setting.fields.telegram_userid')); $this->switch('is_open_bark_push', admin_trans('system-setting.fields.is_open_bark_push')) ->default(BaseModel::STATUS_CLOSE); $this->switch('is_open_bark_push_url', admin_trans('system-setting.fields.is_open_bark_push_url')) ->default(BaseModel::STATUS_CLOSE); $this->text('bark_server', admin_trans('system-setting.fields.bark_server')); $this->text('bark_token', admin_trans('system-setting.fields.bark_token')); $this->switch('is_open_qywxbot_push', admin_trans('system-setting.fields.is_open_qywxbot_push')) ->default(BaseModel::STATUS_CLOSE); $this->text('qywxbot_key', admin_trans('system-setting.fields.qywxbot_key')); }); $this->tab(admin_trans('system-setting.labels.mail_setting'), function () { $this->text('driver', admin_trans('system-setting.fields.driver'))->default('smtp')->required(); $this->text('host', admin_trans('system-setting.fields.host')); $this->text('port', admin_trans('system-setting.fields.port'))->default(587); $this->text('username', admin_trans('system-setting.fields.username')); $this->text('password', admin_trans('system-setting.fields.password')); $this->text('encryption', admin_trans('system-setting.fields.encryption')); $this->text('from_address', admin_trans('system-setting.fields.from_address')); $this->text('from_name', admin_trans('system-setting.fields.from_name')); }); $this->tab(admin_trans('system-setting.labels.geetest'), function () { $this->text('geetest_id', admin_trans('system-setting.fields.geetest_id')); $this->text('geetest_key', admin_trans('system-setting.fields.geetest_key')); $this->switch('is_open_geetest', admin_trans('system-setting.fields.is_open_geetest'))->default(BaseModel::STATUS_CLOSE); }); $this->confirm( admin_trans('dujiaoka.warning_title'), admin_trans('system-setting.rule_messages.change_reboot_php_worker') ); } public function default() { return Cache::get('system-setting'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Forms/EmailTest.php
app/Admin/Forms/EmailTest.php
<?php /** * The file was created by Assimon. * * @author ZhangYiQiu<me@zhangyiqiu.net> * @copyright ZhangYiQiu<me@zhangyiqiu.net> * @link http://zhangyiqiu.net/ */ namespace App\Admin\Forms; use App\Models\BaseModel; use Dcat\Admin\Widgets\Form; use Illuminate\Support\Facades\Cache; use Illuminate\Mail\MailServiceProvider; use Illuminate\Support\Facades\Mail; class EmailTest extends Form { /** * Handle the form request. * * @param array $input * * @return mixed */ public function handle(array $input) { $to = $input['to']; $title = $input['title']; $body = $input['body']; $sysConfig = cache('system-setting'); $mailConfig = [ 'driver' => $sysConfig['driver'] ?? 'smtp', 'host' => $sysConfig['host'] ?? '', 'port' => $sysConfig['port'] ?? '465', 'username' => $sysConfig['username'] ?? '', 'from' => [ 'address' => $sysConfig['from_address'] ?? '', 'name' => $sysConfig['from_name'] ?? '独角发卡' ], 'password' => $sysConfig['password'] ?? '', 'encryption' => $sysConfig['encryption'] ?? 'ssl' ]; // 覆盖 mail 配置 config([ 'mail' => array_merge(config('mail'), $mailConfig) ]); // 重新注册驱动 (new MailServiceProvider(app()))->register(); try { Mail::send(['html' => 'email.mail'], ['body' => $body], function ($message) use ($to, $title){ $message->to($to)->subject($title); }); } catch(\Exception $e) { return $this ->response() ->error($e->getMessage()); } return $this ->response() ->success(admin_trans('email-test.labels.success')); } /** * Build a form here. */ public function form() { $this->tab(admin_trans('menu.titles.email_test'), function () { $this->text('to', admin_trans('email-test.labels.to'))->required(); $this->text('title', admin_trans('email-test.labels.title'))->default('这是一条测试邮件')->required(); $this->editor('body', admin_trans('email-test.labels.body'))->default("这是一条测试邮件的正文内容<br/><br/>正文比较长<br/><br/>非常长<br/><br/>测试测试测试")->required(); }); } public function default() { } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Forms/ImportCarmis.php
app/Admin/Forms/ImportCarmis.php
<?php namespace App\Admin\Forms; use App\Models\Carmis; use App\Models\Goods; use Dcat\Admin\Widgets\Form; use Illuminate\Support\Facades\Storage; class ImportCarmis extends Form { /** * Handle the form request. * * @param array $input * * @return mixed */ public function handle(array $input) { if (empty($input['carmis_list']) && empty($input['carmis_txt'])) { return $this->response()->error(admin_trans('carmis.rule_messages.carmis_list_and_carmis_txt_can_not_be_empty')); } $carmisContent = ""; if (!empty($input['carmis_txt'])) { $carmisContent = Storage::disk('public')->get($input['carmis_txt']); } if (!empty($input['carmis_list'])) { $carmisContent = $input['carmis_list']; } $carmisData = []; $tempList = explode(PHP_EOL, $carmisContent); foreach ($tempList as $val) { if (trim($val) != "") { $carmisData[] = [ 'goods_id' => $input['goods_id'], 'carmi' => trim($val), 'status' => Carmis::STATUS_UNSOLD, 'created_at' => date('Y-m-d H:i:s'), 'updated_at' => date('Y-m-d H:i:s'), ]; } } if ($input['remove_duplication'] == 1) { $carmisData = assoc_unique($carmisData, 'carmi'); } Carmis::query()->insert($carmisData); // 删除文件 Storage::disk('public')->delete($input['carmis_txt']); return $this ->response() ->success(admin_trans('carmis.rule_messages.import_carmis_success')) ->location('/carmis'); } /** * Build a form here. */ public function form() { $this->confirm(admin_trans('carmis.fields.are_you_import_sure')); $this->select('goods_id')->options( Goods::query()->where('type', Goods::AUTOMATIC_DELIVERY)->pluck('gd_name', 'id') )->required(); $this->textarea('carmis_list') ->rows(20) ->help(admin_trans('carmis.helps.carmis_list')); $this->file('carmis_txt') ->disk('public') ->uniqueName() ->accept('txt') ->maxSize(5120) ->help(admin_trans('carmis.helps.carmis_list')); $this->switch('remove_duplication'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Order.php
app/Admin/Repositories/Order.php
<?php namespace App\Admin\Repositories; use App\Models\Order as Model; use Dcat\Admin\Repositories\EloquentRepository; class Order extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/GoodsGroup.php
app/Admin/Repositories/GoodsGroup.php
<?php namespace App\Admin\Repositories; use App\Models\GoodsGroup as Model; use Dcat\Admin\Repositories\EloquentRepository; class GoodsGroup extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Emailtpl.php
app/Admin/Repositories/Emailtpl.php
<?php namespace App\Admin\Repositories; use App\Models\Emailtpl as Model; use Dcat\Admin\Repositories\EloquentRepository; class Emailtpl extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Pay.php
app/Admin/Repositories/Pay.php
<?php namespace App\Admin\Repositories; use App\Models\Pay as Model; use Dcat\Admin\Repositories\EloquentRepository; class Pay extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Coupon.php
app/Admin/Repositories/Coupon.php
<?php namespace App\Admin\Repositories; use App\Models\Coupon as Model; use Dcat\Admin\Repositories\EloquentRepository; class Coupon extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Carmis.php
app/Admin/Repositories/Carmis.php
<?php namespace App\Admin\Repositories; use App\Models\Carmis as Model; use Dcat\Admin\Repositories\EloquentRepository; class Carmis extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Admin/Repositories/Goods.php
app/Admin/Repositories/Goods.php
<?php namespace App\Admin\Repositories; use App\Models\Goods as Model; use Dcat\Admin\Repositories\EloquentRepository; class Goods extends EloquentRepository { /** * Model. * * @var string */ protected $eloquentClass = Model::class; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Console/Kernel.php
app/Console/Kernel.php
<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; class Kernel extends ConsoleKernel { /** * The Artisan commands provided by your application. * * @var array */ protected $commands = [ // ]; /** * Define the application's command schedule. * * @param \Illuminate\Console\Scheduling\Schedule $schedule * @return void */ protected function schedule(Schedule $schedule) { // $schedule->command('inspire') // ->hourly(); } /** * Register the commands for the application. * * @return void */ protected function commands() { $this->load(__DIR__.'/Commands'); require base_path('routes/console.php'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Order.php
app/Models/Order.php
<?php namespace App\Models; use App\Events\OrderUpdated; use Illuminate\Database\Eloquent\SoftDeletes; class Order extends BaseModel { use SoftDeletes; protected $table = 'orders'; /** * 待支付 */ const STATUS_WAIT_PAY = 1; /** * 待处理 */ const STATUS_PENDING = 2; /** * 处理中 */ const STATUS_PROCESSING = 3; /** * 已完成 */ const STATUS_COMPLETED = 4; /** * 失败 */ const STATUS_FAILURE = 5; /** * 过期 */ const STATUS_EXPIRED = -1; /** * 异常 */ const STATUS_ABNORMAL = 6; /** * 优惠券未回退 */ const COUPON_BACK_WAIT = 0; /** * 优惠券已回退 */ const COUPON_BACK_OK = 1; protected $dispatchesEvents = [ 'updated' => OrderUpdated::class ]; /** * 状态映射 * * @return array * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public static function getStatusMap() { return [ self::STATUS_WAIT_PAY => admin_trans('order.fields.status_wait_pay'), self::STATUS_PENDING => admin_trans('order.fields.status_pending'), self::STATUS_PROCESSING => admin_trans('order.fields.status_processing'), self::STATUS_COMPLETED => admin_trans('order.fields.status_completed'), self::STATUS_FAILURE => admin_trans('order.fields.status_failure'), self::STATUS_ABNORMAL => admin_trans('order.fields.status_abnormal'), self::STATUS_EXPIRED => admin_trans('order.fields.status_expired') ]; } /** * 类型映射 * * @return array * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public static function getTypeMap() { return [ self::AUTOMATIC_DELIVERY => admin_trans('goods.fields.automatic_delivery'), self::MANUAL_PROCESSING => admin_trans('goods.fields.manual_processing') ]; } /** * 关联商品 * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function goods() { return $this->belongsTo(Goods::class, 'goods_id'); } /** * 关联优惠券 * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function coupon() { return $this->belongsTo(Coupon::class, 'coupon_id'); } /** * 关联支付 * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function pay() { return $this->belongsTo(Pay::class, 'pay_id'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/GoodsGroup.php
app/Models/GoodsGroup.php
<?php namespace App\Models; use App\Events\GoodsGroupDeleted; use Illuminate\Database\Eloquent\SoftDeletes; class GoodsGroup extends BaseModel { use SoftDeletes; protected $table = 'goods_group'; protected $dispatchesEvents = [ 'deleted' => GoodsGroupDeleted::class ]; /** * 关联商品 * * @return \Illuminate\Database\Eloquent\Relations\HasMany * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function goods() { return $this->hasMany(Goods::class, 'group_id'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Emailtpl.php
app/Models/Emailtpl.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Model; class Emailtpl extends Model { use SoftDeletes; protected $table = 'emailtpls'; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Pay.php
app/Models/Pay.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Database\Eloquent\Model; class Pay extends BaseModel { use SoftDeletes; protected $table = 'pays'; /** * 跳转 */ const METHOD_JUMP = 1; /** * 扫码 */ const METHOD_SCAN = 2; /** * 电脑 */ const PAY_CLIENT_PC = 1; /** * 手机 */ const PAY_CLIENT_MOBILE = 2; /** * 通用 */ const PAY_CLIENT_ALL = 3; public static function getMethodMap() { return [ self::METHOD_JUMP => admin_trans('pay.fields.method_jump'), self::METHOD_SCAN => admin_trans('pay.fields.method_scan'), ]; } public static function getClientMap() { return [ self::PAY_CLIENT_PC => admin_trans('pay.fields.pay_client_pc'), self::PAY_CLIENT_MOBILE => admin_trans('pay.fields.pay_client_mobile'), self::PAY_CLIENT_ALL => admin_trans('pay.fields.pay_client_all'), ]; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/BaseModel.php
app/Models/BaseModel.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Models; use Illuminate\Database\Eloquent\Model; class BaseModel extends Model { const STATUS_OPEN = 1; // 状态开启 const STATUS_CLOSE = 0; // 状态关闭 const AUTOMATIC_DELIVERY = 1; // 自动发货 const MANUAL_PROCESSING = 2; // 人工处理 /** * map * * @return array * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public static function getIsOpenMap() { return [ self::STATUS_OPEN => admin_trans('dujiaoka.status_open'), self::STATUS_CLOSE => admin_trans('dujiaoka.status_close') ]; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Coupon.php
app/Models/Coupon.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; class Coupon extends BaseModel { use SoftDeletes; protected $table = 'coupons'; /** * 一次性使用 */ const TYPE_ONE_TIME = 1; /** * 重复使用 */ const TYPE_REPEAT = 2; /** * 未使用 */ const STATUS_UNUSED = 1; /** * 已使用 */ const STATUS_USE = 2; /** * 关联商品 * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function goods() { return $this->belongsToMany(Goods::class, 'coupons_goods', 'coupons_id', 'goods_id'); } public static function getStatusUseMap() { return [ self::STATUS_USE => admin_trans('coupon.fields.status_use'), self::STATUS_UNUSED => admin_trans('coupon.fields.status_unused'), ]; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Carmis.php
app/Models/Carmis.php
<?php namespace App\Models; use Illuminate\Database\Eloquent\SoftDeletes; class Carmis extends BaseModel { use SoftDeletes; protected $table = 'carmis'; /** * 未售出 */ const STATUS_UNSOLD = 1; /** * 已售出 */ const STATUS_SOLD = 2; /** * 获取组建映射 * * @return array * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public static function getStatusMap() { return [ self::STATUS_UNSOLD => admin_trans('carmis.fields.status_unsold'), self::STATUS_SOLD => admin_trans('carmis.fields.status_sold') ]; } /** * 关联商品 * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function goods() { return $this->belongsTo(Goods::class, 'goods_id'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Models/Goods.php
app/Models/Goods.php
<?php namespace App\Models; use App\Events\GoodsDeleted; use Illuminate\Database\Eloquent\SoftDeletes; class Goods extends BaseModel { use SoftDeletes; protected $table = 'goods'; protected $dispatchesEvents = [ 'deleted' => GoodsDeleted::class ]; /** * 关联分类 * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function group() { return $this->belongsTo(GoodsGroup::class, 'group_id'); } /** * 关联优惠券 * * @return \Illuminate\Database\Eloquent\Relations\BelongsToMany * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function coupon() { return $this->belongsToMany(Coupon::class, 'coupons_goods', 'goods_id', 'coupons_id'); } /** * 关联卡密 * * @return \Illuminate\Database\Eloquent\Relations\HasMany * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function carmis() { return $this->hasMany(Carmis::class, 'goods_id'); } /** * 库存读取器,将自动发货的库存更改为未出售卡密的数量 * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function getInStockAttribute() { if (isset($this->attributes['carmis_count']) && $this->attributes['type'] == self::AUTOMATIC_DELIVERY ) { $this->attributes['in_stock'] = $this->attributes['carmis_count']; } return $this->attributes['in_stock']; } /** * 获取组建映射 * * @return array * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public static function getGoodsTypeMap() { return [ self::AUTOMATIC_DELIVERY => admin_trans('goods.fields.automatic_delivery'), self::MANUAL_PROCESSING => admin_trans('goods.fields.manual_processing') ]; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Providers/BroadcastServiceProvider.php
app/Providers/BroadcastServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\Facades\Broadcast; use Illuminate\Support\ServiceProvider; class BroadcastServiceProvider extends ServiceProvider { /** * Bootstrap any application services. * * @return void */ public function boot() { Broadcast::routes(); require base_path('routes/channels.php'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Providers/RouteServiceProvider.php
app/Providers/RouteServiceProvider.php
<?php namespace App\Providers; use Illuminate\Foundation\Support\Providers\RouteServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Route; class RouteServiceProvider extends ServiceProvider { /** * This namespace is applied to your controller routes. * * In addition, it is set as the URL generator's root namespace. * * @var string */ protected $namespace = 'App\Http\Controllers'; /** * The path to the "home" route for your application. * * @var string */ public const HOME = '/home'; /** * Define your route model bindings, pattern filters, etc. * * @return void */ public function boot() { // parent::boot(); } /** * Define the routes for the application. * * @return void */ public function map() { $this->mapApiRoutes(); $this->mapWebRoutes(); // } /** * Define the "web" routes for the application. * * These routes all receive session state, CSRF protection, etc. * * @return void */ protected function mapWebRoutes() { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); } /** * Define the "api" routes for the application. * * These routes are typically stateless. * * @return void */ protected function mapApiRoutes() { Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.php')); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Providers/EventServiceProvider.php
app/Providers/EventServiceProvider.php
<?php namespace App\Providers; use App\Events\GoodsDeleted; use App\Events\GoodsGroupDeleted; use App\Events\OrderUpdated; use Illuminate\Auth\Events\Registered; use Illuminate\Auth\Listeners\SendEmailVerificationNotification; use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Event; class EventServiceProvider extends ServiceProvider { /** * The event listener mappings for the application. * * @var array */ protected $listen = [ Registered::class => [ SendEmailVerificationNotification::class, ], GoodsGroupDeleted::class => [ \App\Listeners\GoodsGroupDeleted::class, ], GoodsDeleted::class => [ \App\Listeners\GoodsDeleted::class, ], OrderUpdated::class => [ \App\Listeners\OrderUpdated::class, ], ]; /** * Register any events for your application. * * @return void */ public function boot() { parent::boot(); // } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Providers/AppServiceProvider.php
app/Providers/AppServiceProvider.php
<?php namespace App\Providers; use App\Service\CarmisService; use App\Service\CouponService; use App\Service\EmailtplService; use App\Service\GoodsService; use App\Service\OrderProcessService; use App\Service\OrderService; use App\Service\PayService; use Illuminate\Support\ServiceProvider; use Jenssegers\Agent\Agent; class AppServiceProvider extends ServiceProvider { /** * Register any application services. * * @return void */ public function register() { $this->app->singleton('Service\GoodsService', function () { return $this->app->make(GoodsService::class); }); $this->app->singleton('Service\PayService', function () { return $this->app->make(PayService::class); }); $this->app->singleton('Service\CarmisService', function () { return $this->app->make(CarmisService::class); }); $this->app->singleton('Service\OrderService', function () { return $this->app->make(OrderService::class); }); $this->app->singleton('Service\CouponService', function () { return $this->app->make(CouponService::class); }); $this->app->singleton('Service\OrderProcessService', function () { return $this->app->make(OrderProcessService::class); }); $this->app->singleton('Service\EmailtplService', function () { return $this->app->make(EmailtplService::class); }); $this->app->singleton('Jenssegers\Agent', function () { return $this->app->make(Agent::class); }); } /** * Bootstrap any application services. * * @return void */ public function boot() { } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Providers/AuthServiceProvider.php
app/Providers/AuthServiceProvider.php
<?php namespace App\Providers; use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; use Illuminate\Support\Facades\Gate; class AuthServiceProvider extends ServiceProvider { /** * The policy mappings for the application. * * @var array */ protected $policies = [ // 'App\Model' => 'App\Policies\ModelPolicy', ]; /** * Register any authentication / authorization services. * * @return void */ public function boot() { $this->registerPolicies(); // } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Events/GoodsGroupDeleted.php
app/Events/GoodsGroupDeleted.php
<?php namespace App\Events; use App\Models\GoodsGroup; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; class GoodsGroupDeleted { use Dispatchable, InteractsWithSockets, SerializesModels; public $goodsGroup; /** * Create a new event instance. * * @return void */ public function __construct(GoodsGroup $goodsGroup) { $this->goodsGroup = $goodsGroup; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('channel-name'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Events/GoodsDeleted.php
app/Events/GoodsDeleted.php
<?php namespace App\Events; use App\Models\Goods; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; class GoodsDeleted { use Dispatchable, InteractsWithSockets, SerializesModels; public $goods; /** * Create a new event instance. * * @return void */ public function __construct(Goods $goods) { $this->goods = $goods; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('channel-name'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Events/OrderUpdated.php
app/Events/OrderUpdated.php
<?php namespace App\Events; use App\Models\Order; use Illuminate\Broadcasting\Channel; use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Broadcasting\PresenceChannel; use Illuminate\Broadcasting\PrivateChannel; use Illuminate\Contracts\Broadcasting\ShouldBroadcast; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; class OrderUpdated { use Dispatchable, InteractsWithSockets, SerializesModels; public $order; /** * Create a new event instance. * * @return void */ public function __construct(Order $order) { $this->order = $order; } /** * Get the channels the event should broadcast on. * * @return \Illuminate\Broadcasting\Channel|array */ public function broadcastOn() { return new PrivateChannel('channel-name'); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/OrderService.php
app/Service/OrderService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Exceptions\RuleValidationException; use App\Models\BaseModel; use App\Models\Coupon; use App\Models\Goods; use App\Models\Carmis; use App\Models\Order; use App\Rules\SearchPwd; use App\Rules\VerifyImg; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; class OrderService { /** * 商品服务层. * @var \App\Service\PayService */ private $goodsService; /** * 优惠码服务层 * @var \App\Service\CouponService */ private $couponService; public function __construct() { $this->goodsService = app('Service\GoodsService'); $this->couponService = app('Service\CouponService'); } /** * 验证集合 * * @param Request $request * @throws RuleValidationException * @throws \Illuminate\Validation\ValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function validatorCreateOrder(Request $request): void { $validator = Validator::make($request->all(), [ 'gid' => 'required' , 'email' => ['required', 'email'], 'payway' => ['required', 'integer'], 'search_pwd' => [new SearchPwd()], 'by_amount' => ['required', 'integer', 'min:1'], 'img_verify_code' => [new VerifyImg()], ], [ 'by_amount.required' => __('dujiaoka.prompt.buy_amount_format_error'), 'by_amount.integer' => __('dujiaoka.prompt.buy_amount_format_error'), 'by_amount.min' => __('dujiaoka.prompt.buy_amount_format_error'), 'payway.required' => __('dujiaoka.prompt.please_select_mode_of_payment'), 'payway.integer' => __('dujiaoka.prompt.please_select_mode_of_payment'), 'email.required' => __('dujiaoka.prompt.email_format_error'), 'email.email' => __('dujiaoka.prompt.email_format_error'), 'gid.required' => __('dujiaoka.prompt.goods_does_not_exist'), ]); if ($validator->fails()) { throw new RuleValidationException($validator->errors()->first()); } // 极验验证 if ( dujiaoka_config_get('is_open_geetest') == BaseModel::STATUS_OPEN && !Validator::make($request->all(), ['geetest_challenge' => 'geetest',], [ 'geetest' => __('dujiaoka.prompt.geetest_validate_fail')]) ) { throw new RuleValidationException(__('dujiaoka.prompt.geetest_validate_fail')); } } /** * 得到商品详情并验证 * * @param Request $request 请求 * @throws RuleValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function validatorGoods(Request $request): Goods { // 获得商品详情 $goods = $this->goodsService->detail($request->input('gid')); // 商品状态验证 $this->goodsService->validatorGoodsStatus($goods); // 如果有限购 if ($goods->buy_limit_num > 0 && $request->input('by_amount') > $goods->buy_limit_num) { throw new RuleValidationException(__('dujiaoka.prompt.purchase_limit_exceeded')); } // 库存不足 if ($request->input('by_amount') > $goods->in_stock) { throw new RuleValidationException(__('dujiaoka.prompt.inventory_shortage')); } return $goods; } /** * 判断是否有循环卡密 * * @param int $goodsID 商品id * @return array|null * * @author ZhangYiQiu<me@zhangyiqiu.net> * @copyright ZhangYiQiu<me@zhangyiqiu.net> * @link http://zhangyiqiu.net/ */ public function validatorLoopCarmis(Request $request) { $carmis = Carmis::query() ->where('goods_id', $request->input('gid')) ->where('status', Carmis::STATUS_UNSOLD) ->where('is_loop', true) ->count(); if($carmis > 0 && $request->input('by_amount') > 1){ throw new RuleValidationException(__('dujiaoka.prompt.loop_carmis_limit')); } return $carmis; } /** * 优惠码验证 * * @param Request $request * @return Coupon|null * @throws RuleValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function validatorCoupon(Request $request):? Coupon { // 如果提交了优惠码 if ($request->filled('coupon_code')) { // 查询优惠码是否存在 $coupon = $this->couponService->withHasGoods($request->input('coupon_code'), $request->input('gid')); // 此商品没有这个优惠码 if (empty($coupon)) { throw new RuleValidationException(__('dujiaoka.prompt.coupon_does_not_exist')); } // 剩余次数不足 if ($coupon->ret <= 0) { throw new RuleValidationException(__('dujiaoka.prompt.coupon_lack_of_available_opportunities')); } return $coupon; } return null; } /** * 代充框验证. * * @param Goods $goods * @param Request $request * @return string * @throws RuleValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function validatorChargeInput(Goods $goods, Request $request): string { $otherIpt = ''; // 代充框验证 if ($goods->type == Goods::MANUAL_PROCESSING && !empty($goods->other_ipu_cnf)) { // 如果有其他输入框 判断其他输入框内容 然后载入信息 $formatIpt = format_charge_input($goods->other_ipu_cnf); foreach ($formatIpt as $item) { if ($item['rule'] && !$request->filled($item['field'])) { $errMessage = $item['desc'] . __('dujiaoka.prompt.can_not_be_empty'); throw new RuleValidationException($errMessage); } $otherIpt .= $item['desc'].':'.$request->input($item['field']) . PHP_EOL; } } return $otherIpt; } /** * 通过订单号查询订单 * @param string $orderSN * @return Order * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function detailOrderSN(string $orderSN):? Order { $order = Order::query()->with(['coupon', 'pay', 'goods'])->where('order_sn', $orderSN)->first(); return $order; } /** * 根据订单号过期订单. * * @param string $orderSN * @return bool * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function expiredOrderSN(string $orderSN): bool { return Order::query()->where('order_sn', $orderSN)->update(['status' => Order::STATUS_EXPIRED]); } /** * 设置订单优惠码已回退 * * @param string $orderSN * @return bool * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function couponIsBack(string $orderSN): bool { return Order::query()->where('order_sn', $orderSN)->update(['coupon_ret_back' => Order::COUPON_BACK_OK]); } /** * 通过邮箱和查询密码查询 * * @param string $email 邮箱 * @param string $searchPwd 查询面面 * @return array|\Illuminate\Database\Concerns\BuildsQueries[]|\Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Query\Builder[]|\Illuminate\Support\Collection * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function withEmailAndPassword(string $email, string $searchPwd = '') { return Order::query() ->where('email', $email) ->when(!empty($searchPwd), function ($query) use ($searchPwd) { $query->where('search_pwd', $searchPwd); }) ->orderBy('created_at', 'DESC') ->take(5) ->get(); } /** * 通过订单号集合查询 * * @param array $orderSNS 订单号集合 * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Query\Builder[]|\Illuminate\Support\Collection * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function byOrderSNS(array $orderSNS) { return Order::query() ->whereIn('order_sn', $orderSNS) ->orderBy('created_at', 'DESC') ->take(5) ->get(); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/CarmisService.php
app/Service/CarmisService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Models\Carmis; class CarmisService { /** * 通过商品查询一些数量未使用的卡密 * * @param int $goodsID 商品id * @param int $byAmount 数量 * @return array|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function withGoodsByAmountAndStatusUnsold(int $goodsID, int $byAmount) { $carmis = Carmis::query() ->where('goods_id', $goodsID) ->where('status', Carmis::STATUS_UNSOLD) ->take($byAmount) ->get(); return $carmis ? $carmis->toArray() : null; } /** * 通过id集合设置卡密已售出 * * @param array $ids 卡密id集合 * @return bool * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function soldByIDS(array $ids): bool { return Carmis::query()->whereIn('id', $ids)->where('is_loop', 0)->update(['status' => Carmis::STATUS_SOLD]); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/GoodsService.php
app/Service/GoodsService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Exceptions\RuleValidationException; use App\Models\Carmis; use App\Models\Goods; use App\Models\GoodsGroup; /** * 商品服务层 * * Class GoodsService * @package App\Service * @author: Assimon * @email: Ashang@utf8.hk * @blog: https://utf8.hk * Date: 2021/5/30 */ class GoodsService { /** * 获取所有分类并加载该分类下的商品 * * @return array|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function withGroup(): ?array { $goods = GoodsGroup::query() ->with(['goods' => function($query) { $query->withCount(['carmis' => function($query) { $query->where('status', Carmis::STATUS_UNSOLD); }])->where('is_open', Goods::STATUS_OPEN)->orderBy('ord', 'DESC'); }]) ->where('is_open', GoodsGroup::STATUS_OPEN) ->orderBy('ord', 'DESC') ->get(); // 将自动 return $goods ? $goods->toArray() : null; } /** * 商品详情 * * @param int $id 商品id * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function detail(int $id) { $goods = Goods::query() ->with(['coupon']) ->withCount(['carmis' => function($query) { $query->where('status', Carmis::STATUS_UNSOLD); }])->where('id', $id)->first(); return $goods; } /** * 格式化商品信息 * * @param Goods $goods 商品模型 * @return Goods * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function format(Goods $goods) { // 格式化批发配置以及输入框配置 $goods->wholesale_price_cnf = $goods->wholesale_price_cnf ? format_wholesale_price($goods->wholesale_price_cnf) : null; // 如果存在其他配置输入框且为代充 $goods->other_ipu = $goods->other_ipu_cnf ? format_charge_input($goods->other_ipu_cnf) : null; return $goods; } /** * 验证商品状态 * * @param Goods $goods * @return Goods * @throws RuleValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function validatorGoodsStatus(Goods $goods): Goods { if (empty($goods)) { throw new RuleValidationException(__('dujiaoka.prompt.goods_does_not_exist')); } // 上架判断. if ($goods->is_open != Goods::STATUS_OPEN) { throw new RuleValidationException(__('dujiaoka.prompt.the_goods_is_not_on_the_shelves')); } return $goods; } /** * 库存减去 * * @param int $id 商品id * @param int $number 出库数量 * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function inStockDecr(int $id, int $number = 1): bool { return Goods::query()->where('id', $id)->decrement('in_stock', $number); } /** * 商品销量加 * * @param int $id 商品id * @param int $number 数量 * @return bool * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function salesVolumeIncr(int $id, int $number = 1): bool { return Goods::query()->where('id', $id)->increment('sales_volume', $number); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/EmailtplService.php
app/Service/EmailtplService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Models\Emailtpl; class EmailtplService { /** * 通过邮件标识获得邮件模板 * * @param string $token 邮件标识 * @return Emailtpl * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function detailByToken(string $token): Emailtpl { $tpl = Emailtpl::query()->where('tpl_token', $token)->first(); return $tpl; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/OrderProcessService.php
app/Service/OrderProcessService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Exceptions\RuleValidationException; use App\Jobs\ApiHook; use App\Jobs\MailSend; use App\Jobs\OrderExpired; use App\Jobs\ServerJiang; use App\Jobs\TelegramPush; use App\Jobs\BarkPush; use App\Jobs\WorkWeiXinPush; use App\Models\BaseModel; use App\Models\Coupon; use App\Models\Goods; use App\Models\Order; use Carbon\Carbon; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; /** * 订单处理层 * * Class OrderProcessService * @package App\Service * @author: Assimon * @email: Ashang@utf8.hk * @blog: https://utf8.hk * Date: 2021/5/30 */ class OrderProcessService { const PENDING_CACHE_KEY = 'PENDING_ORDERS_LIST'; /** * 优惠码服务层 * @var \App\Service\CouponService */ private $couponService; /** * 订单服务层 * @var \App\Service\OrderService */ private $orderService; /** * 卡密服务层 * @var \App\Service\CarmisService */ private $carmisService; /** * 邮件服务层 * @var \App\Service\EmailtplService */ private $emailtplService; /** * 商品服务层. * @var \App\Service\GoodsService */ private $goodsService; /** * 商品 * @var Goods */ private $goods; /** * 优惠码 * @var Coupon; */ private $coupon; /** * 其他输入框 * @var string */ private $otherIpt; /** * 购买数量 * @var int */ private $buyAmount; /** * 购买邮箱 * @var string */ private $email; /** * 查询密码 * @var string */ private $searchPwd; /** * 下单id * @var string */ private $buyIP; /** * 支付方式 * @var int */ private $payID; public function __construct() { $this->couponService = app('Service\CouponService'); $this->orderService = app('Service\OrderService'); $this->carmisService = app('Service\CarmisService'); $this->emailtplService = app('Service\EmailtplService'); $this->goodsService = app('Service\GoodsService'); } /** * 设置支付方式 * @param int $payID */ public function setPayID(int $payID): void { $this->payID = $payID; } /** * 下单ip * @param mixed $buyIP */ public function setBuyIP($buyIP): void { $this->buyIP = $buyIP; } /** * 设置查询密码 * @param mixed $searchPwd */ public function setSearchPwd($searchPwd): void { $this->searchPwd = $searchPwd; } /** * 设置购买数量 * @param mixed $buyAmount */ public function setBuyAmount($buyAmount): void { $this->buyAmount = $buyAmount; } /** * 设置下单邮箱 * @param mixed $email */ public function setEmail($email): void { $this->email = $email; } /** * 设置商品 * * @param Goods $goods * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function setGoods(Goods $goods) { $this->goods = $goods; } /** * 设置优惠码. * * @param ?Coupon $coupon * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function setCoupon(?Coupon $coupon) { $this->coupon = $coupon; } /** * 其他输入框设置. * * @param ?string $otherIpt * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function setOtherIpt(?string $otherIpt) { $this->otherIpt = $otherIpt; } /** * 计算优惠码价格 * * @return float * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ private function calculateTheCouponPrice(): float { $couponPrice = 0; // 优惠码优惠价格 if ($this->coupon) { $couponPrice = $this->coupon->discount; } return $couponPrice; } /** * 计算批发优惠 * @return float * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ private function calculateTheWholesalePrice(): float { $wholesalePrice = 0; // 优惠单价 $wholesaleTotalPrice = 0; // 优惠总价 if ($this->goods->wholesale_price_cnf) { $formatWholesalePrice = format_wholesale_price($this->goods->wholesale_price_cnf); foreach ($formatWholesalePrice as $item) { if ($this->buyAmount >= $item['number']) { $wholesalePrice = $item['price']; } } } if ($wholesalePrice > 0 ) { $totalPrice = $this->calculateTheTotalPrice(); // 实际原总价 $newTotalPrice = bcmul($wholesalePrice, $this->buyAmount, 2); // 批发价优惠后的总价 $wholesaleTotalPrice = bcsub($totalPrice, $newTotalPrice, 2); // 批发总优惠 } return $wholesaleTotalPrice; } /** * 订单总价 * @return float * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ private function calculateTheTotalPrice(): float { $price = $this->goods->actual_price; return bcmul($price, $this->buyAmount, 2); } /** * 计算实际需要支付的价格 * * @param float $totalPrice 总价 * @param float $couponPrice 优惠码优惠价 * @param float $wholesalePrice 批发优惠 * @return float * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ private function calculateTheActualPrice(float $totalPrice, float $couponPrice, float $wholesalePrice): float { $actualPrice = bcsub($totalPrice, $couponPrice, 2); $actualPrice = bcsub($actualPrice, $wholesalePrice, 2); if ($actualPrice <= 0) { $actualPrice = 0; } return $actualPrice; } /** * 创建订单. * @return Order * @throws RuleValidationException * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function createOrder(): Order { try { $order = new Order(); // 生成订单号 $order->order_sn = strtoupper(Str::random(16)); // 设置商品 $order->goods_id = $this->goods->id; // 标题 $order->title = $this->goods->gd_name . ' x ' . $this->buyAmount; // 订单类型 $order->type = $this->goods->type; // 查询密码 $order->search_pwd = $this->searchPwd; // 邮箱 $order->email = $this->email; // 支付方式. $order->pay_id = $this->payID; // 商品单价 $order->goods_price = $this->goods->actual_price; // 购买数量 $order->buy_amount = $this->buyAmount; // 订单详情 $order->info = $this->otherIpt; // ip地址 $order->buy_ip = $this->buyIP; // 优惠码优惠价格 $order->coupon_discount_price = $this->calculateTheCouponPrice(); if ($this->coupon) { $order->coupon_id = $this->coupon->id; } // 批发价 $order->wholesale_discount_price = $this->calculateTheWholesalePrice(); // 订单总价 $order->total_price = $this->calculateTheTotalPrice(); // 订单实际需要支付价格 $order->actual_price = $this->calculateTheActualPrice( $this->calculateTheTotalPrice(), $this->calculateTheCouponPrice(), $this->calculateTheWholesalePrice() ); // 保存订单 $order->save(); // 如果有用到优惠券 if ($this->coupon) { // 设置优惠码已经使用 $this->couponService->used($this->coupon->coupon); // 使用次数-1 $this->couponService->retDecr($this->coupon->coupon); } // 将订单加入队列 x分钟后过期 $expiredOrderDate = dujiaoka_config_get('order_expire_time', 5); OrderExpired::dispatch($order->order_sn)->delay(Carbon::now()->addMinutes($expiredOrderDate)); return $order; } catch (\Exception $exception) { throw new RuleValidationException($exception->getMessage()); } } /** * 订单成功方法 * * @param string $orderSN 订单号 * @param float $actualPrice 实际支付金额 * @param string $tradeNo 第三方订单号 * @return Order * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function completedOrder(string $orderSN, float $actualPrice, string $tradeNo = '') { DB::beginTransaction(); try { // 得到订单详情 $order = $this->orderService->detailOrderSN($orderSN); if (!$order) { throw new \Exception(__('dujiaoka.prompt.order_does_not_exist')); } // 订单已经处理 if ($order->status == Order::STATUS_COMPLETED) { throw new \Exception(__('dujiaoka.prompt.order_status_completed')); } $bccomp = bccomp($order->actual_price, $actualPrice, 2); // 金额不一致 if ($bccomp != 0) { throw new \Exception(__('dujiaoka.prompt.order_inconsistent_amounts')); } $order->actual_price = $actualPrice; $order->trade_no = $tradeNo; // 区分订单类型 // 自动发货 if ($order->type == Order::AUTOMATIC_DELIVERY) { $completedOrder = $this->processAuto($order); } else { $completedOrder = $this->processManual($order); } // 销量加上 $this->goodsService->salesVolumeIncr($order->goods_id, $order->buy_amount); DB::commit(); // 如果开启了server酱 if (dujiaoka_config_get('is_open_server_jiang', 0) == BaseModel::STATUS_OPEN) { ServerJiang::dispatch($order); } // 如果开启了TG推送 if (dujiaoka_config_get('is_open_telegram_push', 0) == BaseModel::STATUS_OPEN) { TelegramPush::dispatch($order); } // 如果开启了Bark推送 if (dujiaoka_config_get('is_open_bark_push', 0) == BaseModel::STATUS_OPEN) { BarkPush::dispatch($order); } // 如果开启了企业微信Bot推送 if (dujiaoka_config_get('is_open_qywxbot_push', 0) == BaseModel::STATUS_OPEN) { WorkWeiXinPush::dispatch($order); } // 回调事件 ApiHook::dispatch($order); return $completedOrder; } catch (\Exception $exception) { DB::rollBack(); throw new RuleValidationException($exception->getMessage()); } } /** * 手动处理的订单. * * @param Order $order 订单 * @return Order 订单 * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function processManual(Order $order) { // 设置订单为待处理 $order->status = Order::STATUS_PENDING; // 保存订单 $order->save(); // 商品库存减去 $this->goodsService->inStockDecr($order->goods_id, $order->buy_amount); // 邮件数据 $mailData = [ 'created_at' => $order->create_at, 'product_name' => $order->goods->gd_name, 'webname' => dujiaoka_config_get('text_logo', '独角数卡'), 'weburl' => config('app.url') ?? 'http://dujiaoka.com', 'ord_info' => str_replace(PHP_EOL, '<br/>', $order->info), 'ord_title' => $order->title, 'order_id' => $order->order_sn, 'buy_amount' => $order->buy_amount, 'ord_price' => $order->actual_price, 'created_at' => $order->created_at, ]; $tpl = $this->emailtplService->detailByToken('manual_send_manage_mail'); $mailBody = replace_mail_tpl($tpl, $mailData); $manageMail = dujiaoka_config_get('manage_email', ''); // 邮件发送 MailSend::dispatch($manageMail, $mailBody['tpl_name'], $mailBody['tpl_content']); return $order; } /** * 处理自动发货. * * @param Order $order 订单 * @return Order 订单 * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function processAuto(Order $order): Order { // 获得卡密 $carmis = $this->carmisService->withGoodsByAmountAndStatusUnsold($order->goods_id, $order->buy_amount); // 实际可使用的库存已经少于购买数量了 if (count($carmis) != $order->buy_amount) { $order->info = __('dujiaoka.prompt.order_carmis_insufficient_quantity_available'); $order->status = Order::STATUS_ABNORMAL; $order->save(); return $order; } $carmisInfo = array_column($carmis, 'carmi'); $ids = array_column($carmis, 'id'); $order->info = implode(PHP_EOL, $carmisInfo); $order->status = Order::STATUS_COMPLETED; $order->save(); // 将卡密设置为已售出 $this->carmisService->soldByIDS($ids); // 邮件数据 $mailData = [ 'created_at' => $order->create_at, 'product_name' => $order->goods->gd_name, 'webname' => dujiaoka_config_get('text_logo', '独角数卡'), 'weburl' => config('app.url') ?? 'http://dujiaoka.com', 'ord_info' => implode('<br/>', $carmisInfo), 'ord_title' => $order->title, 'order_id' => $order->order_sn, 'buy_amount' => $order->buy_amount, 'ord_price' => $order->actual_price, ]; $tpl = $this->emailtplService->detailByToken('card_send_user_email'); $mailBody = replace_mail_tpl($tpl, $mailData); // 邮件发送 MailSend::dispatch($order->email, $mailBody['tpl_name'], $mailBody['tpl_content']); return $order; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/PayService.php
app/Service/PayService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Models\Pay; class PayService { /** * 加载支付网关 * * @param string|int $payClient 支付场景客户端 * @return array|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function pays(string $payClient = Pay::PAY_CLIENT_PC): ?array { $payGateway = Pay::query() ->whereIn('pay_client', [$payClient, Pay::PAY_CLIENT_ALL]) ->where('is_open', Pay::STATUS_OPEN) ->get(); return $payGateway ? $payGateway->toArray() : null; } /** * 通过支付标识获得支付配置 * * @param string $check 支付标识 * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function detailByCheck(string $check) { $gateway = Pay::query() ->where('pay_check', $check) ->where('is_open', Pay::STATUS_OPEN) ->first(); return $gateway; } /** * 通过id查询支付网关 * * @param int $id 支付网关id * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function detail(int $id) { $gateway = Pay::query() ->where('id', $id) ->where('is_open', Pay::STATUS_OPEN) ->first(); return $gateway; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/app/Service/CouponService.php
app/Service/CouponService.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ namespace App\Service; use App\Models\Coupon; class CouponService { /** * 获得优惠码,通过商品关联 * * @param string $coupon 优惠码 * @param int $goodsID 商品id * @return \Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Eloquent\Model|object|null * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function withHasGoods(string $coupon, int $goodsID) { $coupon = Coupon::query()->whereHas('goods', function ($query) use ($goodsID) { $query->where('goods_id', $goodsID); })->where('is_open', Coupon::STATUS_OPEN)->where('coupon', $coupon)->first(); return $coupon; } /** * 设置优惠券已使用 * @param string $coupon * @return bool */ public function used(string $coupon): bool { return Coupon::query() ->where('coupon', $coupon) ->update(['is_use' => Coupon::STATUS_USE]); } /** * 设置优惠券使用次数 -1 * @param string $coupon * @return int * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function retDecr(string $coupon) { return Coupon::query() ->where('coupon', $coupon) ->decrement('ret', 1); } /** * 设置优惠券次数+1 * * @param int $id * @return int * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ public function retIncrByID(int $id) { return Coupon::query()->where('id', $id)->increment('ret', 1); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/bootstrap/app.php
bootstrap/app.php
<?php /* |-------------------------------------------------------------------------- | Create The Application |-------------------------------------------------------------------------- | | The first thing we will do is create a new Laravel application instance | which serves as the "glue" for all the components of Laravel, and is | the IoC container for the system binding all of the various parts. | */ $app = new Illuminate\Foundation\Application( $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__) ); /* |-------------------------------------------------------------------------- | Bind Important Interfaces |-------------------------------------------------------------------------- | | Next, we need to bind some important interfaces into the container so | we will be able to resolve them when needed. The kernels serve the | incoming requests to this application from both the web and CLI. | */ $app->singleton( Illuminate\Contracts\Http\Kernel::class, App\Http\Kernel::class ); $app->singleton( Illuminate\Contracts\Console\Kernel::class, App\Console\Kernel::class ); $app->singleton( Illuminate\Contracts\Debug\ExceptionHandler::class, App\Exceptions\Handler::class ); /* |-------------------------------------------------------------------------- | Return The Application |-------------------------------------------------------------------------- | | This script returns the application instance. The instance is given to | the calling script so we can separate the building of the instances | from the actual running of the application and sending responses. | */ return $app;
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use Illuminate\Foundation\Testing\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { use CreatesApplication; }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/tests/CreatesApplication.php
tests/CreatesApplication.php
<?php namespace Tests; use Illuminate\Contracts\Console\Kernel; trait CreatesApplication { /** * Creates the application. * * @return \Illuminate\Foundation\Application */ public function createApplication() { $app = require __DIR__.'/../bootstrap/app.php'; $app->make(Kernel::class)->bootstrap(); return $app; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/tests/Feature/ExampleTest.php
tests/Feature/ExampleTest.php
<?php namespace Tests\Feature; use Illuminate\Foundation\Testing\RefreshDatabase; use Tests\TestCase; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $response = $this->get('/'); $response->assertStatus(200); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/tests/Unit/ExampleTest.php
tests/Unit/ExampleTest.php
<?php namespace Tests\Unit; use PHPUnit\Framework\TestCase; class ExampleTest extends TestCase { /** * A basic test example. * * @return void */ public function testBasicTest() { $this->assertTrue(true); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/web.php
routes/web.php
<?php /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | | Here is where you can register web routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | contains the "web" middleware group. Now create something great! | */ $routesDir = ['common']; foreach ($routesDir as $dir) { // 加载所有分类路由 foreach (glob(__DIR__ . '/' . $dir . '/*.php') as $routerFile) { require_once $routerFile; } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/channels.php
routes/channels.php
<?php /* |-------------------------------------------------------------------------- | Broadcast Channels |-------------------------------------------------------------------------- | | Here you may register all of the event broadcasting channels that your | application supports. The given channel authorization callbacks are | used to check if an authenticated user can listen to the channel. | */ Broadcast::channel('App.User.{id}', function ($user, $id) { return (int) $user->id === (int) $id; });
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/api.php
routes/api.php
<?php use Illuminate\Http\Request; /* |-------------------------------------------------------------------------- | API Routes |-------------------------------------------------------------------------- | | Here is where you can register API routes for your application. These | routes are loaded by the RouteServiceProvider within a group which | is assigned the "api" middleware group. Enjoy building your API! | */ Route::middleware('auth:api')->get('/user', function (Request $request) { return $request->user(); });
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/console.php
routes/console.php
<?php use Illuminate\Foundation\Inspiring; /* |-------------------------------------------------------------------------- | Console Routes |-------------------------------------------------------------------------- | | This file is where you may define all of your Closure based console | commands. Each Closure is bound to a command instance allowing a | simple approach to interacting with each command's IO methods. | */ Artisan::command('inspire', function () { $this->comment(Inspiring::quote()); })->describe('Display an inspiring quote');
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/common/web.php
routes/common/web.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ use Illuminate\Support\Facades\Route; Route::group(['middleware' => ['dujiaoka.boot'],'namespace' => 'Home'], function () { // 首页 Route::get('/', 'HomeController@index'); // 极验效验 Route::get('check-geetest', 'HomeController@geetest'); // 商品详情 Route::get('buy/{id}', 'HomeController@buy'); // 提交订单 Route::post('create-order', 'OrderController@createOrder'); // 结算页 Route::get('bill/{orderSN}', 'OrderController@bill'); // 通过订单号详情页 Route::get('detail-order-sn/{orderSN}', 'OrderController@detailOrderSN'); // 订单查询页 Route::get('order-search', 'OrderController@orderSearch'); // 检查订单状态 Route::get('check-order-status/{orderSN}', 'OrderController@checkOrderStatus'); // 通过订单号查询 Route::post('search-order-by-sn', 'OrderController@searchOrderBySN'); // 通过邮箱查询 Route::post('search-order-by-email', 'OrderController@searchOrderByEmail'); // 通过浏览器查询 Route::post('search-order-by-browser', 'OrderController@searchOrderByBrowser'); }); Route::group(['middleware' => ['install.check'],'namespace' => 'Home'], function () { // 安装 Route::get('install', 'HomeController@install'); // 执行安装 Route::post('do-install', 'HomeController@doInstall'); });
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/routes/common/pay.php
routes/common/pay.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ use Illuminate\Support\Facades\Route; Route::get('pay-gateway/{handle}/{payway}/{orderSN}', 'PayController@redirectGateway'); // 支付相关 Route::group(['prefix' => 'pay', 'namespace' => 'Pay', 'middleware' => ['dujiaoka.pay_gate_way']], function () { // 支付宝 Route::get('alipay/{payway}/{orderSN}', 'AlipayController@gateway'); Route::post('alipay/notify_url', 'AlipayController@notifyUrl'); // 微信 Route::get('wepay/{payway}/{orderSN}', 'WepayController@gateway'); Route::post('wepay/notify_url', 'WepayController@notifyUrl'); // 码支付 Route::get('mapay/{payway}/{orderSN}', 'MapayController@gateway'); Route::post('mapay/notify_url', 'MapayController@notifyUrl'); // Paysapi Route::get('paysapi/{payway}/{orderSN}', 'PaysapiController@gateway'); Route::post('paysapi/notify_url', 'PaysapiController@notifyUrl'); Route::get('paysapi/return_url', 'PaysapiController@returnUrl')->name('paysapi-return'); // payjs Route::get('payjs/{payway}/{orderSN}', 'PayjsController@gateway'); Route::post('payjs/notify_url', 'PayjsController@notifyUrl'); // 易支付 Route::get('yipay/{payway}/{orderSN}', 'YipayController@gateway'); Route::get('yipay/notify_url', 'YipayController@notifyUrl'); Route::get('yipay/return_url', 'YipayController@returnUrl')->name('yipay-return'); // paypal Route::get('paypal/{payway}/{orderSN}', 'PaypalPayController@gateway'); Route::get('paypal/return_url', 'PaypalPayController@returnUrl')->name('paypal-return'); Route::any('paypal/notify_url', 'PaypalPayController@notifyUrl'); // V免签 Route::get('vpay/{payway}/{orderSN}', 'VpayController@gateway'); Route::get('vpay/notify_url', 'VpayController@notifyUrl'); Route::get('vpay/return_url', 'VpayController@returnUrl')->name('vpay-return'); // stripe Route::get('stripe/{payway}/{oid}','StripeController@gateway'); Route::get('stripe/return_url','StripeController@returnUrl'); Route::get('stripe/check','StripeController@check'); Route::get('stripe/charge','StripeController@charge'); // Coinbase Route::get('coinbase/{payway}/{orderSN}', 'CoinbaseController@gateway'); Route::post('coinbase/notify_url', 'CoinbaseController@notifyUrl'); // epusdt Route::get('epusdt/{payway}/{orderSN}', 'EpusdtController@gateway'); Route::post('epusdt/notify_url', 'EpusdtController@notifyUrl'); Route::get('epusdt/return_url', 'EpusdtController@returnUrl')->name('epusdt-return'); // tokenpay Route::get('tokenpay/{payway}/{orderSN}', 'TokenPayController@gateway'); Route::post('tokenpay/notify_url', 'TokenPayController@notifyUrl'); Route::get('tokenpay/return_url', 'TokenPayController@returnUrl')->name('tokenpay-return'); });
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/public/index.php
public/index.php
<?php /** * Laravel - A PHP Framework For Web Artisans * * @package Laravel * @author Taylor Otwell <taylor@laravel.com> */ define('LARAVEL_START', microtime(true)); /* |-------------------------------------------------------------------------- | Register The Auto Loader |-------------------------------------------------------------------------- | | Composer provides a convenient, automatically generated class loader for | our application. We just need to utilize it! We'll simply require it | into the script here so that we don't have to worry about manual | loading any of our classes later on. It feels great to relax. | */ require __DIR__.'/../vendor/autoload.php'; /* |-------------------------------------------------------------------------- | Turn On The Lights |-------------------------------------------------------------------------- | | We need to illuminate PHP development, so let us turn on the lights. | This bootstraps the framework and gets it ready for use, then it | will load up this application so that we can run it and send | the responses back to the browser and delight our users. | */ $app = require_once __DIR__.'/../bootstrap/app.php'; /* |-------------------------------------------------------------------------- | Run The Application |-------------------------------------------------------------------------- | | Once we have the application, we can handle the incoming request | through the kernel, and send the associated response back to | the client's browser allowing them to enjoy the creative | and wonderful application we have prepared for them. | */ $kernel = $app->make(Illuminate\Contracts\Http\Kernel::class); $response = $kernel->handle( $request = Illuminate\Http\Request::capture() ); $response->send(); $kernel->terminate($request, $response);
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/app.php
config/app.php
<?php return [ /* |-------------------------------------------------------------------------- | Application Name |-------------------------------------------------------------------------- | | This value is the name of your application. This value is used when the | framework needs to place the application's name in a notification or | any other location as required by the application or its packages. | */ 'name' => env('APP_NAME', 'Laravel'), /* |-------------------------------------------------------------------------- | Application Environment |-------------------------------------------------------------------------- | | This value determines the "environment" your application is currently | running in. This may determine how you prefer to configure various | services the application utilizes. Set this in your ".env" file. | */ 'env' => env('APP_ENV', 'production'), /* |-------------------------------------------------------------------------- | Application Debug Mode |-------------------------------------------------------------------------- | | When your application is in debug mode, detailed error messages with | stack traces will be shown on every error that occurs within your | application. If disabled, a simple generic error page is shown. | */ 'debug' => (bool) env('APP_DEBUG', false), /* |-------------------------------------------------------------------------- | Application URL |-------------------------------------------------------------------------- | | This URL is used by the console to properly generate URLs when using | the Artisan command line tool. You should set this to the root of | your application so that it is used when running Artisan tasks. | */ 'url' => env('APP_URL', 'http://localhost'), 'asset_url' => env('ASSET_URL', null), /* |-------------------------------------------------------------------------- | Application Timezone |-------------------------------------------------------------------------- | | Here you may specify the default timezone for your application, which | will be used by the PHP date and date-time functions. We have gone | ahead and set this to a sensible default for you out of the box. | */ 'timezone' => 'PRC', /* |-------------------------------------------------------------------------- | Application Locale Configuration |-------------------------------------------------------------------------- | | The application locale determines the default locale that will be used | by the translation service provider. You are free to set this value | to any of the locales which will be supported by the application. | */ 'locale' => env('DUJIAO_ADMIN_LANGUAGE', 'zh_CN'), /* |-------------------------------------------------------------------------- | Application Fallback Locale |-------------------------------------------------------------------------- | | The fallback locale determines the locale to use when the current one | is not available. You may change the value to correspond to any of | the language folders that are provided through your application. | */ 'fallback_locale' => 'en', /* |-------------------------------------------------------------------------- | Faker Locale |-------------------------------------------------------------------------- | | This locale will be used by the Faker PHP library when generating fake | data for your database seeds. For example, this will be used to get | localized telephone numbers, street address information and more. | */ 'faker_locale' => 'en_US', /* |-------------------------------------------------------------------------- | Encryption Key |-------------------------------------------------------------------------- | | This key is used by the Illuminate encrypter service and should be set | to a random, 32 character string, otherwise these encrypted strings | will not be safe. Please do this before deploying an application! | */ 'key' => env('APP_KEY'), 'cipher' => 'AES-256-CBC', /* |-------------------------------------------------------------------------- | Autoloaded Service Providers |-------------------------------------------------------------------------- | | The service providers listed here will be automatically loaded on the | request to your application. Feel free to add your own services to | this array to grant expanded functionality to your applications. | */ 'providers' => [ /* * Laravel Framework Service Providers... */ Illuminate\Auth\AuthServiceProvider::class, Illuminate\Broadcasting\BroadcastServiceProvider::class, Illuminate\Bus\BusServiceProvider::class, Illuminate\Cache\CacheServiceProvider::class, Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, Illuminate\Cookie\CookieServiceProvider::class, Illuminate\Database\DatabaseServiceProvider::class, Illuminate\Encryption\EncryptionServiceProvider::class, Illuminate\Filesystem\FilesystemServiceProvider::class, Illuminate\Foundation\Providers\FoundationServiceProvider::class, Illuminate\Hashing\HashServiceProvider::class, Illuminate\Mail\MailServiceProvider::class, Illuminate\Notifications\NotificationServiceProvider::class, Illuminate\Pagination\PaginationServiceProvider::class, Illuminate\Pipeline\PipelineServiceProvider::class, Illuminate\Queue\QueueServiceProvider::class, Illuminate\Redis\RedisServiceProvider::class, Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, Illuminate\Session\SessionServiceProvider::class, Illuminate\Translation\TranslationServiceProvider::class, Illuminate\Validation\ValidationServiceProvider::class, Illuminate\View\ViewServiceProvider::class, /* * Package Service Providers... */ /* * Application Service Providers... */ App\Providers\AppServiceProvider::class, App\Providers\AuthServiceProvider::class, // App\Providers\BroadcastServiceProvider::class, App\Providers\EventServiceProvider::class, App\Providers\RouteServiceProvider::class, Jenssegers\Agent\AgentServiceProvider::class, Germey\Geetest\GeetestServiceProvider::class ], /* |-------------------------------------------------------------------------- | Class Aliases |-------------------------------------------------------------------------- | | This array of class aliases will be registered when this application | is started. However, feel free to register as many as you wish as | the aliases are "lazy" loaded so they don't hinder performance. | */ 'aliases' => [ 'App' => Illuminate\Support\Facades\App::class, 'Arr' => Illuminate\Support\Arr::class, 'Artisan' => Illuminate\Support\Facades\Artisan::class, 'Auth' => Illuminate\Support\Facades\Auth::class, 'Blade' => Illuminate\Support\Facades\Blade::class, 'Broadcast' => Illuminate\Support\Facades\Broadcast::class, 'Bus' => Illuminate\Support\Facades\Bus::class, 'Cache' => Illuminate\Support\Facades\Cache::class, 'Config' => Illuminate\Support\Facades\Config::class, 'Cookie' => Illuminate\Support\Facades\Cookie::class, 'Crypt' => Illuminate\Support\Facades\Crypt::class, 'DB' => Illuminate\Support\Facades\DB::class, 'Eloquent' => Illuminate\Database\Eloquent\Model::class, 'Event' => Illuminate\Support\Facades\Event::class, 'File' => Illuminate\Support\Facades\File::class, 'Gate' => Illuminate\Support\Facades\Gate::class, 'Hash' => Illuminate\Support\Facades\Hash::class, 'Lang' => Illuminate\Support\Facades\Lang::class, 'Log' => Illuminate\Support\Facades\Log::class, 'Mail' => Illuminate\Support\Facades\Mail::class, 'Notification' => Illuminate\Support\Facades\Notification::class, 'Password' => Illuminate\Support\Facades\Password::class, 'Queue' => Illuminate\Support\Facades\Queue::class, 'Redirect' => Illuminate\Support\Facades\Redirect::class, 'Redis' => Illuminate\Support\Facades\Redis::class, 'Request' => Illuminate\Support\Facades\Request::class, 'Response' => Illuminate\Support\Facades\Response::class, 'Route' => Illuminate\Support\Facades\Route::class, 'Schema' => Illuminate\Support\Facades\Schema::class, 'Session' => Illuminate\Support\Facades\Session::class, 'Storage' => Illuminate\Support\Facades\Storage::class, 'Str' => Illuminate\Support\Str::class, 'URL' => Illuminate\Support\Facades\URL::class, 'Validator' => Illuminate\Support\Facades\Validator::class, 'View' => Illuminate\Support\Facades\View::class, 'Agent' => Jenssegers\Agent\Facades\Agent::class, 'Geetest' => Germey\Geetest\Geetest::class, ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/logging.php
config/logging.php
<?php use Monolog\Handler\NullHandler; use Monolog\Handler\StreamHandler; use Monolog\Handler\SyslogUdpHandler; return [ /* |-------------------------------------------------------------------------- | Default Log Channel |-------------------------------------------------------------------------- | | This option defines the default log channel that gets used when writing | messages to the logs. The name specified in this option should match | one of the channels defined in the "channels" configuration array. | */ 'default' => env('LOG_CHANNEL', 'stack'), /* |-------------------------------------------------------------------------- | Log Channels |-------------------------------------------------------------------------- | | Here you may configure the log channels for your application. Out of | the box, Laravel uses the Monolog PHP logging library. This gives | you a variety of powerful log handlers / formatters to utilize. | | Available Drivers: "single", "daily", "slack", "syslog", | "errorlog", "monolog", | "custom", "stack" | */ 'channels' => [ 'stack' => [ 'driver' => 'stack', 'channels' => ['single'], 'ignore_exceptions' => false, ], 'single' => [ 'driver' => 'single', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', ], 'daily' => [ 'driver' => 'daily', 'path' => storage_path('logs/laravel.log'), 'level' => 'debug', 'days' => 14, ], 'slack' => [ 'driver' => 'slack', 'url' => env('LOG_SLACK_WEBHOOK_URL'), 'username' => 'Laravel Log', 'emoji' => ':boom:', 'level' => 'critical', ], 'papertrail' => [ 'driver' => 'monolog', 'level' => 'debug', 'handler' => SyslogUdpHandler::class, 'handler_with' => [ 'host' => env('PAPERTRAIL_URL'), 'port' => env('PAPERTRAIL_PORT'), ], ], 'stderr' => [ 'driver' => 'monolog', 'handler' => StreamHandler::class, 'formatter' => env('LOG_STDERR_FORMATTER'), 'with' => [ 'stream' => 'php://stderr', ], ], 'syslog' => [ 'driver' => 'syslog', 'level' => 'debug', ], 'errorlog' => [ 'driver' => 'errorlog', 'level' => 'debug', ], 'null' => [ 'driver' => 'monolog', 'handler' => NullHandler::class, ], 'emergency' => [ 'path' => storage_path('logs/laravel.log'), ], ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/session.php
config/session.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Session Driver |-------------------------------------------------------------------------- | | This option controls the default session "driver" that will be used on | requests. By default, we will use the lightweight native driver but | you may specify any of the other wonderful drivers provided here. | | Supported: "file", "cookie", "database", "apc", | "memcached", "redis", "dynamodb", "array" | */ 'driver' => env('SESSION_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Session Lifetime |-------------------------------------------------------------------------- | | Here you may specify the number of minutes that you wish the session | to be allowed to remain idle before it expires. If you want them | to immediately expire on the browser closing, set that option. | */ 'lifetime' => env('SESSION_LIFETIME', 120), 'expire_on_close' => false, /* |-------------------------------------------------------------------------- | Session Encryption |-------------------------------------------------------------------------- | | This option allows you to easily specify that all of your session data | should be encrypted before it is stored. All encryption will be run | automatically by Laravel and you can use the Session like normal. | */ 'encrypt' => false, /* |-------------------------------------------------------------------------- | Session File Location |-------------------------------------------------------------------------- | | When using the native session driver, we need a location where session | files may be stored. A default has been set for you but a different | location may be specified. This is only needed for file sessions. | */ 'files' => storage_path('framework/sessions'), /* |-------------------------------------------------------------------------- | Session Database Connection |-------------------------------------------------------------------------- | | When using the "database" or "redis" session drivers, you may specify a | connection that should be used to manage these sessions. This should | correspond to a connection in your database configuration options. | */ 'connection' => env('SESSION_CONNECTION', null), /* |-------------------------------------------------------------------------- | Session Database Table |-------------------------------------------------------------------------- | | When using the "database" session driver, you may specify the table we | should use to manage the sessions. Of course, a sensible default is | provided for you; however, you are free to change this as needed. | */ 'table' => 'sessions', /* |-------------------------------------------------------------------------- | Session Cache Store |-------------------------------------------------------------------------- | | When using the "apc", "memcached", or "dynamodb" session drivers you may | list a cache store that should be used for these sessions. This value | must match with one of the application's configured cache "stores". | */ 'store' => env('SESSION_STORE', null), /* |-------------------------------------------------------------------------- | Session Sweeping Lottery |-------------------------------------------------------------------------- | | Some session drivers must manually sweep their storage location to get | rid of old sessions from storage. Here are the chances that it will | happen on a given request. By default, the odds are 2 out of 100. | */ 'lottery' => [2, 100], /* |-------------------------------------------------------------------------- | Session Cookie Name |-------------------------------------------------------------------------- | | Here you may change the name of the cookie used to identify a session | instance by ID. The name specified here will get used every time a | new session cookie is created by the framework for every driver. | */ 'cookie' => env( 'SESSION_COOKIE', Str::slug(env('APP_NAME', 'laravel'), '_').'_session' ), /* |-------------------------------------------------------------------------- | Session Cookie Path |-------------------------------------------------------------------------- | | The session cookie path determines the path for which the cookie will | be regarded as available. Typically, this will be the root path of | your application but you are free to change this when necessary. | */ 'path' => '/', /* |-------------------------------------------------------------------------- | Session Cookie Domain |-------------------------------------------------------------------------- | | Here you may change the domain of the cookie used to identify a session | in your application. This will determine which domains the cookie is | available to in your application. A sensible default has been set. | */ 'domain' => env('SESSION_DOMAIN', null), /* |-------------------------------------------------------------------------- | HTTPS Only Cookies |-------------------------------------------------------------------------- | | By setting this option to true, session cookies will only be sent back | to the server if the browser has a HTTPS connection. This will keep | the cookie from being sent to you if it can not be done securely. | */ 'secure' => env('SESSION_SECURE_COOKIE', false), /* |-------------------------------------------------------------------------- | HTTP Access Only |-------------------------------------------------------------------------- | | Setting this value to true will prevent JavaScript from accessing the | value of the cookie and the cookie will only be accessible through | the HTTP protocol. You are free to modify this option if needed. | */ 'http_only' => true, /* |-------------------------------------------------------------------------- | Same-Site Cookies |-------------------------------------------------------------------------- | | This option determines how your cookies behave when cross-site requests | take place, and can be used to mitigate CSRF attacks. By default, we | do not enable this as other CSRF protection services are in place. | | Supported: "lax", "strict", "none" | */ 'same_site' => null, ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/queue.php
config/queue.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Queue Connection Name |-------------------------------------------------------------------------- | | Laravel's queue API supports an assortment of back-ends via a single | API, giving you convenient access to each back-end using the same | syntax for every one. Here you may define a default connection. | */ 'default' => env('QUEUE_CONNECTION', 'sync'), /* |-------------------------------------------------------------------------- | Queue Connections |-------------------------------------------------------------------------- | | Here you may configure the connection information for each server that | is used by your application. A default configuration has been added | for each back-end shipped with Laravel. You are free to add more. | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" | */ 'connections' => [ 'sync' => [ 'driver' => 'sync', ], 'database' => [ 'driver' => 'database', 'table' => 'jobs', 'queue' => 'default', 'retry_after' => 90, ], 'beanstalkd' => [ 'driver' => 'beanstalkd', 'host' => 'localhost', 'queue' => 'default', 'retry_after' => 90, 'block_for' => 0, ], 'sqs' => [ 'driver' => 'sqs', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 'queue' => env('SQS_QUEUE', 'your-queue-name'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), 'retry_after' => 90, 'block_for' => null, ], ], /* |-------------------------------------------------------------------------- | Failed Queue Jobs |-------------------------------------------------------------------------- | | These options configure the behavior of failed queue job logging so you | can control which database and table are used to store the jobs that | have failed. You may change them to any database / table you wish. | */ 'failed' => [ 'driver' => env('QUEUE_FAILED_DRIVER', 'database'), 'database' => env('DB_CONNECTION', 'mysql'), 'table' => 'failed_jobs', ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/geetest.php
config/geetest.php
<?php return [ /* |-------------------------------------------------------------------------- | Config Language |-------------------------------------------------------------------------- | | Here you can config your yunpian api key from yunpian provided. | | Options: ['zh-cn', 'zh-tw', 'en', 'ja', 'ko'] | */ 'lang' => 'zh-cn', /* |-------------------------------------------------------------------------- | Config Geetest Id |-------------------------------------------------------------------------- | | Here you can config your yunpian api key from yunpian provided. | */ 'id' => env('GEETEST_ID'), /* |-------------------------------------------------------------------------- | Config Geetest Key |-------------------------------------------------------------------------- | | Here you can config your yunpian api key from yunpian provided. | */ 'key' => env('GEETEST_KEY'), /* |-------------------------------------------------------------------------- | Config Geetest URL |-------------------------------------------------------------------------- | | Here you can config your geetest url for ajax validation. | */ 'url' => '/geetest', /* |-------------------------------------------------------------------------- | Config Geetest Protocol |-------------------------------------------------------------------------- | | Here you can config your geetest url for ajax validation. | | Options: http or https | */ 'protocol' => 'http', /* |-------------------------------------------------------------------------- | Config Geetest Product |-------------------------------------------------------------------------- | | Here you can config your geetest url for ajax validation. | | Options: float, popup, custom, bind | */ 'product' => 'float', /* |-------------------------------------------------------------------------- | Config Client Fail Alert Text |-------------------------------------------------------------------------- | | Here you can config the alert text when it failed in client. | */ 'client_fail_alert' => '请正确完成验证码操作', /* |-------------------------------------------------------------------------- | Config Server Fail Alert |-------------------------------------------------------------------------- | | Here you can config the alert text when it failed in server (two factor validation). | */ 'server_fail_alert' => '验证码校验失败', ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/cache.php
config/cache.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Cache Store |-------------------------------------------------------------------------- | | This option controls the default cache connection that gets used while | using this caching library. This connection is used when another is | not explicitly specified when executing a given caching function. | | Supported: "apc", "array", "database", "file", | "memcached", "redis", "dynamodb" | */ 'default' => env('CACHE_DRIVER', 'file'), /* |-------------------------------------------------------------------------- | Cache Stores |-------------------------------------------------------------------------- | | Here you may define all of the cache "stores" for your application as | well as their drivers. You may even define multiple stores for the | same cache driver to group types of items stored in your caches. | */ 'stores' => [ 'apc' => [ 'driver' => 'apc', ], 'array' => [ 'driver' => 'array', ], 'database' => [ 'driver' => 'database', 'table' => 'cache', 'connection' => null, ], 'file' => [ 'driver' => 'file', 'path' => storage_path('framework/cache/data'), ], 'memcached' => [ 'driver' => 'memcached', 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 'sasl' => [ env('MEMCACHED_USERNAME'), env('MEMCACHED_PASSWORD'), ], 'options' => [ // Memcached::OPT_CONNECT_TIMEOUT => 2000, ], 'servers' => [ [ 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 'port' => env('MEMCACHED_PORT', 11211), 'weight' => 100, ], ], ], 'redis' => [ 'driver' => 'redis', 'connection' => 'cache', ], 'dynamodb' => [ 'driver' => 'dynamodb', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 'endpoint' => env('DYNAMODB_ENDPOINT'), ], ], /* |-------------------------------------------------------------------------- | Cache Key Prefix |-------------------------------------------------------------------------- | | When utilizing a RAM based store such as APC or Memcached, there might | be other applications utilizing the same cache. So, we'll specify a | value to get prefixed to all our keys so we can avoid collisions. | */ 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/admin.php
config/admin.php
<?php return [ /* |-------------------------------------------------------------------------- | dcat-admin name |-------------------------------------------------------------------------- | | This value is the name of dcat-admin, This setting is displayed on the | login page. | */ 'name' => '独角数卡', /* |-------------------------------------------------------------------------- | dcat-admin logo |-------------------------------------------------------------------------- | | The logo of all admin pages. You can also set it as an image by using a | `img` tag, eg '<img src="http://logo-url" alt="Admin logo">'. | */ 'logo' => '<img src="/vendor/dujiaoka-admin/images/logo.jpg" width="35"> &nbsp;独角 数卡', /* |-------------------------------------------------------------------------- | dcat-admin mini logo |-------------------------------------------------------------------------- | | The logo of all admin pages when the sidebar menu is collapsed. You can | also set it as an image by using a `img` tag, eg | '<img src="http://logo-url" alt="Admin logo">'. | */ 'logo-mini' => '<img src="/vendor/dujiaoka-admin/images/logo.jpg">', /* |-------------------------------------------------------------------------- | User default avatar |-------------------------------------------------------------------------- | | Set a default avatar for newly created users. | */ 'default_avatar' => '@admin/images/default-avatar.jpg', /* |-------------------------------------------------------------------------- | dcat-admin route settings |-------------------------------------------------------------------------- | | The routing configuration of the admin page, including the path prefix, | the controller namespace, and the default middleware. If you want to | access through the root path, just set the prefix to empty string. | */ 'route' => [ 'domain' => env('ADMIN_ROUTE_DOMAIN'), 'prefix' => env('ADMIN_ROUTE_PREFIX', 'admin'), 'namespace' => 'App\\Admin\\Controllers', 'middleware' => ['web', 'admin'], 'enable_session_middleware' => false, ], /* |-------------------------------------------------------------------------- | dcat-admin install directory |-------------------------------------------------------------------------- | | The installation directory of the controller and routing configuration | files of the administration page. The default is `app/Admin`, which must | be set before running `artisan admin::install` to take effect. | */ 'directory' => app_path('Admin'), /* |-------------------------------------------------------------------------- | dcat-admin html title |-------------------------------------------------------------------------- | | Html title for all pages. | */ 'title' => '独角数卡 - 后台控制中心', /* |-------------------------------------------------------------------------- | Assets hostname |-------------------------------------------------------------------------- | */ 'assets_server' => env('ADMIN_ASSETS_SERVER'), /* |-------------------------------------------------------------------------- | Access via `https` |-------------------------------------------------------------------------- | | If your page is going to be accessed via https, set it to `true`. | */ 'https' => env('ADMIN_HTTPS', false), /* |-------------------------------------------------------------------------- | dcat-admin auth setting |-------------------------------------------------------------------------- | | Authentication settings for all admin pages. Include an authentication | guard and a user provider setting of authentication driver. | | You can specify a controller for `login` `logout` and other auth routes. | */ 'auth' => [ 'enable' => true, 'controller' => App\Admin\Controllers\AuthController::class, 'guard' => 'admin', 'guards' => [ 'admin' => [ 'driver' => 'session', 'provider' => 'admin', ], ], 'providers' => [ 'admin' => [ 'driver' => 'eloquent', 'model' => Dcat\Admin\Models\Administrator::class, ], ], // Add "remember me" to login form 'remember' => true, // All method to path like: auth/users/*/edit // or specific method to path like: get:auth/users. 'except' => [ 'auth/login', 'auth/logout', ], 'enable_session_middleware' => false, ], /* |-------------------------------------------------------------------------- | The global Grid setting |-------------------------------------------------------------------------- */ 'grid' => [ // The global Grid action display class. 'grid_action_class' => Dcat\Admin\Grid\Displayers\DropdownActions::class, // The global Grid batch action display class. 'batch_action_class' => Dcat\Admin\Grid\Tools\BatchActions::class, // The global Grid pagination display class. 'paginator_class' => Dcat\Admin\Grid\Tools\Paginator::class, 'actions' => [ 'view' => Dcat\Admin\Grid\Actions\Show::class, 'edit' => Dcat\Admin\Grid\Actions\Edit::class, 'quick_edit' => Dcat\Admin\Grid\Actions\QuickEdit::class, 'delete' => Dcat\Admin\Grid\Actions\Delete::class, 'batch_delete' => Dcat\Admin\Grid\Tools\BatchDelete::class, ], // The global Grid column selector setting. 'column_selector' => [ 'store' => Dcat\Admin\Grid\ColumnSelector\SessionStore::class, 'store_params' => [ 'driver' => 'file', ], ], ], /* |-------------------------------------------------------------------------- | dcat-admin helpers setting. |-------------------------------------------------------------------------- */ 'helpers' => [ 'enable' => false, ], /* |-------------------------------------------------------------------------- | dcat-admin permission setting |-------------------------------------------------------------------------- | | Permission settings for all admin pages. | */ 'permission' => [ // Whether enable permission. 'enable' => true, // All method to path like: auth/users/*/edit // or specific method to path like: get:auth/users. 'except' => [ '/', 'auth/login', 'auth/logout', 'auth/setting', ], ], /* |-------------------------------------------------------------------------- | dcat-admin menu setting |-------------------------------------------------------------------------- | */ 'menu' => [ 'cache' => [ // enable cache or not 'enable' => false, 'store' => 'file', ], // Whether enable menu bind to a permission. 'bind_permission' => true, // Whether enable role bind to menu. 'role_bind_menu' => true, // Whether enable permission bind to menu. 'permission_bind_menu' => true, 'default_icon' => 'feather icon-circle', ], /* |-------------------------------------------------------------------------- | dcat-admin upload setting |-------------------------------------------------------------------------- | | File system configuration for form upload files and images, including | disk and upload path. | */ 'upload' => [ // Disk in `config/filesystem.php`. 'disk' => 'admin', // Image and file upload path under the disk above. 'directory' => [ 'image' => 'images', 'file' => 'files', ], ], /* |-------------------------------------------------------------------------- | dcat-admin database settings |-------------------------------------------------------------------------- | | Here are database settings for dcat-admin builtin model & tables. | */ 'database' => [ // Database connection for following tables. 'connection' => '', // User tables and model. 'users_table' => 'admin_users', 'users_model' => Dcat\Admin\Models\Administrator::class, // Role table and model. 'roles_table' => 'admin_roles', 'roles_model' => Dcat\Admin\Models\Role::class, // Permission table and model. 'permissions_table' => 'admin_permissions', 'permissions_model' => Dcat\Admin\Models\Permission::class, // Menu table and model. 'menu_table' => 'admin_menu', 'menu_model' => Dcat\Admin\Models\Menu::class, // Pivot table for table above. 'role_users_table' => 'admin_role_users', 'role_permissions_table' => 'admin_role_permissions', 'role_menu_table' => 'admin_role_menu', 'permission_menu_table' => 'admin_permission_menu', 'settings_table' => 'admin_settings', 'extensions_table' => 'admin_extensions', 'extension_histories_table' => 'admin_extension_histories', ], /* |-------------------------------------------------------------------------- | Application layout |-------------------------------------------------------------------------- | | This value is the layout of admin pages. */ 'layout' => [ // default, blue, blue-light, green 'color' => 'default', // sidebar-separate 'body_class' => [], 'horizontal_menu' => false, 'sidebar_collapsed' => false, // light, primary, dark 'sidebar_style' => 'light', 'dark_mode_switch' => true, // bg-primary, bg-info, bg-warning, bg-success, bg-danger, bg-dark 'navbar_color' => '', ], /* |-------------------------------------------------------------------------- | The exception handler class |-------------------------------------------------------------------------- | */ 'exception_handler' => Dcat\Admin\Exception\Handler::class, /* |-------------------------------------------------------------------------- | Enable default breadcrumb |-------------------------------------------------------------------------- | | Whether enable default breadcrumb for every page content. */ 'enable_default_breadcrumb' => true, /* |-------------------------------------------------------------------------- | Extension |-------------------------------------------------------------------------- */ 'extension' => [ // When you use command `php artisan admin:ext-make` to generate extensions, // the extension files will be generated in this directory. 'dir' => base_path('dcat-admin-extensions'), ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/dujiaoka.php
config/dujiaoka.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ return [ 'dujiaoka_version' => '2.0.6', // 模板集合 'templates' => [ 'unicorn' => '官方[unicorn-独角兽]', 'luna' => 'Luna[Julyssn]', 'hyper' => 'hyper[Bimoe]' ], // 语言 'language' => [ 'zh_CN' => '简体中文', 'zh_TW' => '繁体中文', ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/hashing.php
config/hashing.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Hash Driver |-------------------------------------------------------------------------- | | This option controls the default hash driver that will be used to hash | passwords for your application. By default, the bcrypt algorithm is | used; however, you remain free to modify this option if you wish. | | Supported: "bcrypt", "argon", "argon2id" | */ 'driver' => 'bcrypt', /* |-------------------------------------------------------------------------- | Bcrypt Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Bcrypt algorithm. This will allow you | to control the amount of time it takes to hash the given password. | */ 'bcrypt' => [ 'rounds' => env('BCRYPT_ROUNDS', 10), ], /* |-------------------------------------------------------------------------- | Argon Options |-------------------------------------------------------------------------- | | Here you may specify the configuration options that should be used when | passwords are hashed using the Argon algorithm. These will allow you | to control the amount of time it takes to hash the given password. | */ 'argon' => [ 'memory' => 1024, 'threads' => 2, 'time' => 2, ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/view.php
config/view.php
<?php return [ /* |-------------------------------------------------------------------------- | View Storage Paths |-------------------------------------------------------------------------- | | Most templating systems load templates from disk. Here you may specify | an array of paths that should be checked for your views. Of course | the usual Laravel view path has already been registered for you. | */ 'paths' => [ resource_path('views'), ], /* |-------------------------------------------------------------------------- | Compiled View Path |-------------------------------------------------------------------------- | | This option determines where all the compiled Blade templates will be | stored for your application. Typically, this is within the storage | directory. However, as usual, you are free to change this value. | */ 'compiled' => env( 'VIEW_COMPILED_PATH', realpath(storage_path('framework/views')) ), ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/database.php
config/database.php
<?php use Illuminate\Support\Str; return [ /* |-------------------------------------------------------------------------- | Default Database Connection Name |-------------------------------------------------------------------------- | | Here you may specify which of the database connections below you wish | to use as your default connection for all database work. Of course | you may use many connections at once using the Database library. | */ 'default' => env('DB_CONNECTION', 'mysql'), /* |-------------------------------------------------------------------------- | Database Connections |-------------------------------------------------------------------------- | | Here are each of the database connections setup for your application. | Of course, examples of configuring each database platform that is | supported by Laravel is shown below to make development simple. | | | All database work in Laravel is done through the PHP PDO facilities | so make sure you have the driver for your particular database of | choice installed on your machine before you begin development. | */ 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'url' => env('DATABASE_URL'), 'database' => env('DB_DATABASE', database_path('database.sqlite')), 'prefix' => '', 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), ], 'mysql' => [ 'driver' => 'mysql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'unix_socket' => env('DB_SOCKET', ''), 'charset' => 'utf8mb4', 'collation' => 'utf8mb4_unicode_ci', 'prefix' => '', 'prefix_indexes' => true, 'strict' => true, 'engine' => null, 'options' => extension_loaded('pdo_mysql') ? array_filter([ PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), ]) : [], ], 'pgsql' => [ 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'schema' => 'public', 'sslmode' => 'prefer', ], 'sqlsrv' => [ 'driver' => 'sqlsrv', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '1433'), 'database' => env('DB_DATABASE', 'forge'), 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, ], ], /* |-------------------------------------------------------------------------- | Migration Repository Table |-------------------------------------------------------------------------- | | This table keeps track of all the migrations that have already run for | your application. Using this information, we can determine which of | the migrations on disk haven't actually been run in the database. | */ 'migrations' => 'migrations', /* |-------------------------------------------------------------------------- | Redis Databases |-------------------------------------------------------------------------- | | Redis is an open source, fast, and advanced key-value store that also | provides a richer body of commands than a typical key-value system | such as APC or Memcached. Laravel makes it easy to dig right in. | */ 'redis' => [ 'client' => env('REDIS_CLIENT', 'phpredis'), 'options' => [ 'cluster' => env('REDIS_CLUSTER', 'redis'), 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), ], 'default' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => (int) env('REDIS_PORT', '6379'), 'database' => env('REDIS_DB', '0'), ], 'cache' => [ 'url' => env('REDIS_URL'), 'host' => env('REDIS_HOST', '127.0.0.1'), 'password' => env('REDIS_PASSWORD', null), 'port' => (int) env('REDIS_PORT', '6379'), 'database' => env('REDIS_CACHE_DB', '1'), ], ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/services.php
config/services.php
<?php return [ /* |-------------------------------------------------------------------------- | Third Party Services |-------------------------------------------------------------------------- | | This file is for storing the credentials for third party services such | as Mailgun, Postmark, AWS and more. This file provides the de facto | location for this type of information, allowing packages to have | a conventional file to locate the various service credentials. | */ 'mailgun' => [ 'domain' => env('MAILGUN_DOMAIN'), 'secret' => env('MAILGUN_SECRET'), 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), ], 'postmark' => [ 'token' => env('POSTMARK_TOKEN'), ], 'ses' => [ 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/filesystems.php
config/filesystems.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Filesystem Disk |-------------------------------------------------------------------------- | | Here you may specify the default filesystem disk that should be used | by the framework. The "local" disk, as well as a variety of cloud | based disks are available to your application. Just store away! | */ 'default' => env('FILESYSTEM_DRIVER', 'local'), /* |-------------------------------------------------------------------------- | Default Cloud Filesystem Disk |-------------------------------------------------------------------------- | | Many applications store files both locally and in the cloud. For this | reason, you may specify a default "cloud" driver here. This driver | will be bound as the Cloud disk implementation in the container. | */ 'cloud' => env('FILESYSTEM_CLOUD', 's3'), /* |-------------------------------------------------------------------------- | Filesystem Disks |-------------------------------------------------------------------------- | | Here you may configure as many filesystem "disks" as you wish, and you | may even configure multiple disks of the same driver. Defaults have | been setup for each driver as an example of the required options. | | Supported Drivers: "local", "ftp", "sftp", "s3" | */ 'disks' => [ 'local' => [ 'driver' => 'local', 'root' => storage_path('app'), ], 'public' => [ 'driver' => 'local', 'root' => storage_path('app/public'), 'url' => env('APP_URL').'/storage', 'visibility' => 'public', ], 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' => env('AWS_SECRET_ACCESS_KEY'), 'region' => env('AWS_DEFAULT_REGION'), 'bucket' => env('AWS_BUCKET'), 'url' => env('AWS_URL'), 'endpoint' => env('AWS_ENDPOINT'), ], 'admin' => [ 'driver' => 'local', 'root' => public_path('uploads'), 'visibility' => 'public', 'url' => env('APP_URL').'/uploads', ], ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/mail.php
config/mail.php
<?php return [ /* |-------------------------------------------------------------------------- | Mail Driver |-------------------------------------------------------------------------- | | Laravel supports both SMTP and PHP's "mail" function as drivers for the | sending of e-mail. You may specify which one you're using throughout | your application here. By default, Laravel is setup for SMTP mail. | | Supported: "smtp", "sendmail", "mailgun", "ses", | "postmark", "log", "array" | */ 'driver' => env('MAIL_DRIVER', 'smtp'), /* |-------------------------------------------------------------------------- | SMTP Host Address |-------------------------------------------------------------------------- | | Here you may provide the host address of the SMTP server used by your | applications. A default option is provided that is compatible with | the Mailgun mail service which will provide reliable deliveries. | */ 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), /* |-------------------------------------------------------------------------- | SMTP Host Port |-------------------------------------------------------------------------- | | This is the SMTP port used by your application to deliver e-mails to | users of the application. Like the host we have set this value to | stay compatible with the Mailgun e-mail application by default. | */ 'port' => env('MAIL_PORT', 587), /* |-------------------------------------------------------------------------- | Global "From" Address |-------------------------------------------------------------------------- | | You may wish for all e-mails sent by your application to be sent from | the same address. Here, you may specify a name and address that is | used globally for all e-mails that are sent by your application. | */ 'from' => [ 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 'name' => env('MAIL_FROM_NAME', 'Example'), ], /* |-------------------------------------------------------------------------- | E-Mail Encryption Protocol |-------------------------------------------------------------------------- | | Here you may specify the encryption protocol that should be used when | the application send e-mail messages. A sensible default using the | transport layer security protocol should provide great security. | */ 'encryption' => env('MAIL_ENCRYPTION', 'tls'), /* |-------------------------------------------------------------------------- | SMTP Server Username |-------------------------------------------------------------------------- | | If your SMTP server requires a username for authentication, you should | set it here. This will get used to authenticate with your server on | connection. You may also set the "password" value below this one. | */ 'username' => env('MAIL_USERNAME'), 'password' => env('MAIL_PASSWORD'), /* |-------------------------------------------------------------------------- | Sendmail System Path |-------------------------------------------------------------------------- | | When using the "sendmail" driver to send e-mails, we will need to know | the path to where Sendmail lives on this server. A default path has | been provided here, which will work well on most of your systems. | */ 'sendmail' => '/usr/sbin/sendmail -bs', /* |-------------------------------------------------------------------------- | Markdown Mail Settings |-------------------------------------------------------------------------- | | If you are using Markdown based email rendering, you may configure your | theme and component paths here, allowing you to customize the design | of the emails. Or, you may simply stick with the Laravel defaults! | */ 'markdown' => [ 'theme' => 'default', 'paths' => [ resource_path('views/vendor/mail'), ], ], /* |-------------------------------------------------------------------------- | Log Channel |-------------------------------------------------------------------------- | | If you are using the "log" driver, you may specify the logging channel | if you prefer to keep mail messages separate from other log entries | for simpler reading. Otherwise, the default channel will be used. | */ 'log_channel' => env('MAIL_LOG_CHANNEL'), ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/broadcasting.php
config/broadcasting.php
<?php return [ /* |-------------------------------------------------------------------------- | Default Broadcaster |-------------------------------------------------------------------------- | | This option controls the default broadcaster that will be used by the | framework when an event needs to be broadcast. You may set this to | any of the connections defined in the "connections" array below. | | Supported: "pusher", "redis", "log", "null" | */ 'default' => env('BROADCAST_DRIVER', 'null'), /* |-------------------------------------------------------------------------- | Broadcast Connections |-------------------------------------------------------------------------- | | Here you may define all of the broadcast connections that will be used | to broadcast events to other systems or over websockets. Samples of | each available type of connection are provided inside this array. | */ 'connections' => [ 'pusher' => [ 'driver' => 'pusher', 'key' => env('PUSHER_APP_KEY'), 'secret' => env('PUSHER_APP_SECRET'), 'app_id' => env('PUSHER_APP_ID'), 'options' => [ 'cluster' => env('PUSHER_APP_CLUSTER'), 'useTLS' => true, ], ], 'redis' => [ 'driver' => 'redis', 'connection' => 'default', ], 'log' => [ 'driver' => 'log', ], 'null' => [ 'driver' => 'null', ], ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/config/auth.php
config/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Defaults |-------------------------------------------------------------------------- | | This option controls the default authentication "guard" and password | reset options for your application. You may change these defaults | as required, but they're a perfect start for most applications. | */ 'defaults' => [ 'guard' => 'web', 'passwords' => 'users', ], /* |-------------------------------------------------------------------------- | Authentication Guards |-------------------------------------------------------------------------- | | Next, you may define every authentication guard for your application. | Of course, a great default configuration has been defined for you | here which uses session storage and the Eloquent user provider. | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | Supported: "session", "token" | */ 'guards' => [ 'web' => [ 'driver' => 'session', 'provider' => 'users', ], 'api' => [ 'driver' => 'token', 'provider' => 'users', 'hash' => false, ], ], /* |-------------------------------------------------------------------------- | User Providers |-------------------------------------------------------------------------- | | All authentication drivers have a user provider. This defines how the | users are actually retrieved out of your database or other storage | mechanisms used by this application to persist your user's data. | | If you have multiple user tables or models you may configure multiple | sources which represent each model / table. These sources may then | be assigned to any extra authentication guards you have defined. | | Supported: "database", "eloquent" | */ 'providers' => [ 'users' => [ 'driver' => 'eloquent', 'model' => App\User::class, ], // 'users' => [ // 'driver' => 'database', // 'table' => 'users', // ], ], /* |-------------------------------------------------------------------------- | Resetting Passwords |-------------------------------------------------------------------------- | | You may specify multiple password reset configurations if you have more | than one user table or model in the application and you want to have | separate password reset settings based on the specific user types. | | The expire time is the number of minutes that the reset token should be | considered valid. This security feature keeps tokens short-lived so | they have less time to be guessed. You may change this as needed. | */ 'passwords' => [ 'users' => [ 'provider' => 'users', 'table' => 'password_resets', 'expire' => 60, 'throttle' => 60, ], ], /* |-------------------------------------------------------------------------- | Password Confirmation Timeout |-------------------------------------------------------------------------- | | Here you may define the amount of seconds before a password confirmation | times out and the user is prompted to re-enter their password via the | confirmation screen. By default, the timeout lasts for three hours. | */ 'password_timeout' => 10800, ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/database/seeds/OrderTableSeeder.php
database/seeds/OrderTableSeeder.php
<?php use Illuminate\Database\Seeder; class OrderTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { factory(\App\Models\Order::class, 50)->create(); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/database/seeds/DatabaseSeeder.php
database/seeds/DatabaseSeeder.php
<?php use Illuminate\Database\Seeder; class DatabaseSeeder extends Seeder { /** * Seed the application's database. * * @return void */ public function run() { $this->call(OrderTableSeeder::class); } }
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/database/factories/OrderFactory.php
database/factories/OrderFactory.php
<?php /** @var \Illuminate\Database\Eloquent\Factory $factory */ use App\Model; use Faker\Generator as Faker; use Illuminate\Support\Str; $factory->define(\App\Models\Order::class, function (Faker $faker) { return [ 'order_sn' => strtoupper(Str::random(12)), 'goods_id' => rand(1, 3), 'coupon_id' => rand(1, 3), 'title' => $faker->words(3, true), 'type' => rand(1,2), 'goods_price' => $faker->randomFloat(2, 10, 100), 'buy_amount' => rand(1, 10), 'coupon_discount_price' => $faker->randomFloat(2, 0, 100), 'wholesale_discount_price' => $faker->randomFloat(2, 0, 100), 'total_price' => $faker->randomFloat(2, 10, 100), 'actual_price' => $faker->randomFloat(2, 10, 100), 'search_pwd' => $faker->password(6, 10), 'email' => $faker->email, 'info' => $faker->words(3, true), 'pay_id' => rand(1, 20), 'buy_ip' => $faker->ipv4, 'trade_no' => strtoupper(Str::random(12)), 'status' => rand(1, 5), 'created_at' => $faker->dateTimeBetween('-7 days', 'now', 'PRC'), 'updated_at' => $faker->dateTimeBetween('-7 days', 'now', 'PRC'), ]; });
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/en/passwords.php
resources/lang/en/passwords.php
<?php return [ /* |-------------------------------------------------------------------------- | Password Reset Language Lines |-------------------------------------------------------------------------- | | The following language lines are the default lines which match reasons | that are given by the password broker for a password update attempt | has failed, such as for an invalid token or invalid new password. | */ 'reset' => 'Your password has been reset!', 'sent' => 'We have e-mailed your password reset link!', 'throttled' => 'Please wait before retrying.', 'token' => 'This password reset token is invalid.', 'user' => "We can't find a user with that e-mail address.", ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/en/admin.php
resources/lang/en/admin.php
<?php return [ 'scaffold' => [ 'header' => 'Scaffold', 'choose' => 'choose', 'table' => 'Table', 'model' => 'Model', 'controller' => 'Controller', 'repository' => 'Repository', 'add_field' => 'Add field', 'pk' => 'Primary key', 'soft_delete' => 'Soft delete', 'create_migration' => 'Create migration', 'create_model' => 'Create model', 'create_repository' => 'Create repository', 'create_controller' => 'Create controller', 'run_migrate' => 'Run migrate', 'create_lang' => 'Create lang', 'field' => 'field', 'translation' => 'translation', 'comment' => 'comment', 'default' => 'default', 'field_name' => 'field name', 'type' => 'type', 'nullable' => 'nullable', 'key' => 'key', 'translate_title' => 'Translate Title', 'sync_translation_with_comment' => 'Sync translation and comment', ], 'client' => [ 'delete_confirm' => 'Are you sure to delete this item ?', 'confirm' => 'Confirm', 'cancel' => 'Cancel', 'refresh_succeeded' => 'Refresh succeeded !', 'close' => 'Close', 'selected_options' => ':num options selected', 'exceed_max_item' => 'Maximum items exceeded.', 'no_preview' => 'No preview available.', '500' => 'Internal server error !', '403' => 'Permission deny !', '401' => 'Unauthorized !', '419' => 'Page expired !', ], 'online' => 'Online', 'login' => 'Login', 'logout' => 'Logout', 'setting' => 'Setting', 'name' => 'Name', 'username' => 'Username', 'user' => 'User', 'alias' => 'Alias', 'routes' => 'Routes', 'route_action' => 'Route Action', 'middleware' => 'Middleware', 'method' => 'Method', 'old_password' => 'Old password', 'password' => 'Password', 'password_confirmation' => 'Password confirmation', 'old_password_error' => 'Incorrect password', 'remember_me' => 'Remember me', 'user_setting' => 'User setting', 'avatar' => 'Avatar', 'list' => 'List', 'new' => 'New', 'create' => 'Create', 'delete' => 'Delete', 'remove' => 'Remove', 'edit' => 'Edit', 'quick_edit' => 'Quick Edit', 'view' => 'View', 'continue_editing' => 'Continue editing', 'continue_creating' => 'Continue creating', 'detail' => 'Detail', 'browse' => 'Browse', 'reset' => 'Reset', 'export' => 'Export', 'batch_delete' => 'Batch delete', 'save' => 'Save', 'refresh' => 'Refresh', 'order' => 'Order', 'expand' => 'Expand', 'collapse' => 'Collapse', 'filter' => 'Filter', 'search' => 'Search', 'close' => 'Close', 'show' => 'Show', 'entries' => 'entries', 'captcha' => 'Captcha', 'action' => 'Action', 'title' => 'Title', 'description' => 'Description', 'back' => 'Back', 'back_to_list' => 'Back to List', 'submit' => 'Submit', 'menu' => 'Menu', 'input' => 'Input', 'succeeded' => 'Succeeded', 'failed' => 'Failed', 'delete_confirm' => 'Are you sure to delete this item ?', 'delete_succeeded' => 'Delete succeeded !', 'delete_failed' => 'Delete failed !', 'update_succeeded' => 'Update succeeded !', 'update_failed' => 'Update failed !', 'save_succeeded' => 'Save succeeded !', 'save_failed' => 'Save failed !', 'refresh_succeeded' => 'Refresh succeeded !', 'login_successful' => 'Login successful', 'choose' => 'Choose', 'choose_file' => 'Select file', 'choose_image' => 'Select image', 'more' => 'More', 'deny' => 'Permission denied', 'administrator' => 'Administrator', 'no_data' => 'No data.', 'roles' => 'Roles', 'permissions' => 'Permissions', 'slug' => 'Slug', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'alert' => 'Alert', 'parent_id' => 'Parent', 'icon' => 'Icon', 'uri' => 'URI', 'operation_log' => 'Operation log', 'parent_select_error' => 'Parent select error', 'tree' => 'Tree', 'table' => 'Table', 'default' => 'Default', 'import' => 'Import', 'is_not_import' => 'No', 'selected_options' => ':num options selected', 'pagination' => [ 'range' => 'Showing :first to :last of :total entries', ], 'role' => 'Role', 'permission' => 'Permission', 'route' => 'Route', 'confirm' => 'Confirm', 'cancel' => 'Cancel', 'selectall' => 'Select all', 'http' => [ 'method' => 'HTTP method', 'path' => 'HTTP path', ], 'all_methods_if_empty' => 'All methods if empty', 'all' => 'All', 'current_page' => 'Current page', 'selected_rows' => 'Selected rows', 'upload' => 'Upload', 'new_folder' => 'New folder', 'time' => 'Time', 'size' => 'Size', 'between_start' => 'Start', 'between_end' => 'End', 'next_page' => 'Next', 'prev_page' => 'Previous', 'next_step' => 'Next', 'prev_step' => 'Previous', 'done' => 'Done', 'listbox' => [ 'text_total' => 'Showing all {0}', 'text_empty' => 'Empty list', 'filtered' => '{0} / {1}', 'filter_clear' => 'Show all', 'filter_placeholder' => 'Filter', ], 'responsive' => [ 'display_all' => 'Display all', 'display' => 'Display', 'focus' => 'Focus', ], 'uploader' => [ 'add_new_media' => 'Browse', 'drag_file' => 'Or drag file here', 'max_file_limit' => 'The :attribute may not be greater than :max.', 'exceed_size' => 'Exceeds the maximum file-size', 'interrupt' => 'Interrupt', 'upload_failed' => 'Upload failed! Please try again.', 'selected_files' => ':num files selected,size: :size。', 'selected_has_failed' => 'Uploaded: :success, failed: :fail, <a class="retry" href="javascript:"";">retry </a>or<a class="ignore" href="javascript:"";"> ignore</a>', 'selected_success' => ':num(:size) files selected, Uploaded: :success.', 'dot' => ', ', 'failed_num' => 'failed::fail.', 'pause_upload' => 'Pause', 'go_on_upload' => 'Go On', 'start_upload' => 'Upload', 'upload_success_message' => ':success files uploaded successfully', 'go_on_add' => 'New File', 'Q_TYPE_DENIED' => 'Sorry, the type of this file is not allowed!', 'Q_EXCEED_NUM_LIMIT' => 'Sorry, maximum number of allowable file uploads has been exceeded!', 'F_EXCEED_SIZE' => 'Sorry,the maximum file-size has been exceeded!', 'Q_EXCEED_SIZE_LIMIT' => 'Sorry, the maximum file-size has been exceeded!', 'F_DUPLICATE' => 'Duplicate file.', 'confirm_delete_file' => 'Are you sure delete this file from server?', ], 'import_extension_confirm' => 'Are you sure import the extension?', 'quick_create' => 'Quick create', 'grid_items_selected' => '{n} items selected', 'nothing_updated' => 'Nothing has been updated.', 'welcome_back' => 'Welcome back, please login to your account.', 'documentation' => 'Documentation', 'demo' => 'Demo', 'extensions' => 'Extensions', 'version' => 'Version', 'current_version' => 'Current version', 'latest_version' => 'Latest version', 'upgrade_to_version' => 'Upgrade to version :version', 'enable' => 'Enable', 'disable' => 'Disable', 'uninstall' => 'Uninstall', 'confirm_uninstall' => 'Please confirm that you wish to uninstall this extension. This may result in potential data loss.', 'marketplace' => 'Marketplace', 'theme' => 'Theme', 'application' => 'Application', 'install_from_local' => 'Install From Local', 'install_succeeded' => 'Install succeeded !', 'invalid_extension_package' => 'Invalid extension package !', 'copied' => 'Copied', 'auth_failed' => 'These credentials do not match our records.', 'validation' => [ 'match' => 'The :attribute and :other must match.', 'minlength' => 'The :attribute must be at least :min characters.', 'maxlength' => 'The :attribute may not be greater than :max characters.', ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/en/pagination.php
resources/lang/en/pagination.php
<?php return [ /* |-------------------------------------------------------------------------- | Pagination Language Lines |-------------------------------------------------------------------------- | | The following language lines are used by the paginator library to build | the simple pagination links. You are free to change them to anything | you want to customize your views to better match your application. | */ 'previous' => '&laquo; Previous', 'next' => 'Next &raquo;', ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/en/validation.php
resources/lang/en/validation.php
<?php return [ /* |-------------------------------------------------------------------------- | Validation Language Lines |-------------------------------------------------------------------------- | | The following language lines contain the default error messages used by | the validator class. Some of these rules have multiple versions such | as the size rules. Feel free to tweak each of these messages here. | */ 'accepted' => 'The :attribute must be accepted.', 'active_url' => 'The :attribute is not a valid URL.', 'after' => 'The :attribute must be a date after :date.', 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', 'alpha' => 'The :attribute may only contain letters.', 'alpha_dash' => 'The :attribute may only contain letters, numbers, dashes and underscores.', 'alpha_num' => 'The :attribute may only contain letters and numbers.', 'array' => 'The :attribute must be an array.', 'before' => 'The :attribute must be a date before :date.', 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', 'between' => [ 'numeric' => 'The :attribute must be between :min and :max.', 'file' => 'The :attribute must be between :min and :max kilobytes.', 'string' => 'The :attribute must be between :min and :max characters.', 'array' => 'The :attribute must have between :min and :max items.', ], 'boolean' => 'The :attribute field must be true or false.', 'confirmed' => 'The :attribute confirmation does not match.', 'date' => 'The :attribute is not a valid date.', 'date_equals' => 'The :attribute must be a date equal to :date.', 'date_format' => 'The :attribute does not match the format :format.', 'different' => 'The :attribute and :other must be different.', 'digits' => 'The :attribute must be :digits digits.', 'digits_between' => 'The :attribute must be between :min and :max digits.', 'dimensions' => 'The :attribute has invalid image dimensions.', 'distinct' => 'The :attribute field has a duplicate value.', 'email' => 'The :attribute must be a valid email address.', 'ends_with' => 'The :attribute must end with one of the following: :values.', 'exists' => 'The selected :attribute is invalid.', 'file' => 'The :attribute must be a file.', 'filled' => 'The :attribute field must have a value.', 'gt' => [ 'numeric' => 'The :attribute must be greater than :value.', 'file' => 'The :attribute must be greater than :value kilobytes.', 'string' => 'The :attribute must be greater than :value characters.', 'array' => 'The :attribute must have more than :value items.', ], 'gte' => [ 'numeric' => 'The :attribute must be greater than or equal :value.', 'file' => 'The :attribute must be greater than or equal :value kilobytes.', 'string' => 'The :attribute must be greater than or equal :value characters.', 'array' => 'The :attribute must have :value items or more.', ], 'image' => 'The :attribute must be an image.', 'in' => 'The selected :attribute is invalid.', 'in_array' => 'The :attribute field does not exist in :other.', 'integer' => 'The :attribute must be an integer.', 'ip' => 'The :attribute must be a valid IP address.', 'ipv4' => 'The :attribute must be a valid IPv4 address.', 'ipv6' => 'The :attribute must be a valid IPv6 address.', 'json' => 'The :attribute must be a valid JSON string.', 'lt' => [ 'numeric' => 'The :attribute must be less than :value.', 'file' => 'The :attribute must be less than :value kilobytes.', 'string' => 'The :attribute must be less than :value characters.', 'array' => 'The :attribute must have less than :value items.', ], 'lte' => [ 'numeric' => 'The :attribute must be less than or equal :value.', 'file' => 'The :attribute must be less than or equal :value kilobytes.', 'string' => 'The :attribute must be less than or equal :value characters.', 'array' => 'The :attribute must not have more than :value items.', ], 'max' => [ 'numeric' => 'The :attribute may not be greater than :max.', 'file' => 'The :attribute may not be greater than :max kilobytes.', 'string' => 'The :attribute may not be greater than :max characters.', 'array' => 'The :attribute may not have more than :max items.', ], 'mimes' => 'The :attribute must be a file of type: :values.', 'mimetypes' => 'The :attribute must be a file of type: :values.', 'min' => [ 'numeric' => 'The :attribute must be at least :min.', 'file' => 'The :attribute must be at least :min kilobytes.', 'string' => 'The :attribute must be at least :min characters.', 'array' => 'The :attribute must have at least :min items.', ], 'not_in' => 'The selected :attribute is invalid.', 'not_regex' => 'The :attribute format is invalid.', 'numeric' => 'The :attribute must be a number.', 'password' => 'The password is incorrect.', 'present' => 'The :attribute field must be present.', 'regex' => 'The :attribute format is invalid.', 'required' => 'The :attribute field is required.', 'required_if' => 'The :attribute field is required when :other is :value.', 'required_unless' => 'The :attribute field is required unless :other is in :values.', 'required_with' => 'The :attribute field is required when :values is present.', 'required_with_all' => 'The :attribute field is required when :values are present.', 'required_without' => 'The :attribute field is required when :values is not present.', 'required_without_all' => 'The :attribute field is required when none of :values are present.', 'same' => 'The :attribute and :other must match.', 'size' => [ 'numeric' => 'The :attribute must be :size.', 'file' => 'The :attribute must be :size kilobytes.', 'string' => 'The :attribute must be :size characters.', 'array' => 'The :attribute must contain :size items.', ], 'starts_with' => 'The :attribute must start with one of the following: :values.', 'string' => 'The :attribute must be a string.', 'timezone' => 'The :attribute must be a valid zone.', 'unique' => 'The :attribute has already been taken.', 'uploaded' => 'The :attribute failed to upload.', 'url' => 'The :attribute format is invalid.', 'uuid' => 'The :attribute must be a valid UUID.', /* |-------------------------------------------------------------------------- | Custom Validation Language Lines |-------------------------------------------------------------------------- | | Here you may specify custom validation messages for attributes using the | convention "attribute.rule" to name the lines. This makes it quick to | specify a specific custom language line for a given attribute rule. | */ 'custom' => [ 'attribute-name' => [ 'rule-name' => 'custom-message', ], ], /* |-------------------------------------------------------------------------- | Custom Validation Attributes |-------------------------------------------------------------------------- | | The following language lines are used to swap our attribute placeholder | with something more reader friendly such as "E-Mail Address" instead | of "email". This simply helps us make our message more expressive. | */ 'attributes' => [], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/en/auth.php
resources/lang/en/auth.php
<?php return [ /* |-------------------------------------------------------------------------- | Authentication Language Lines |-------------------------------------------------------------------------- | | The following language lines are used during authentication for various | messages that we need to display to the user. You are free to modify | these language lines according to your application's requirements. | */ 'failed' => 'These credentials do not match our records.', 'throttle' => 'Too many login attempts. Please try again in :seconds seconds.', ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/goods.php
resources/lang/zh_CN/goods.php
<?php return [ 'labels' => [ 'Goods' => '商品', 'goods' => '商品', ], 'fields' => [ 'actual_price' => '实际售价', 'group_id' => '所属分类', 'api_hook' => '回调事件', 'buy_prompt' => '购买提示', 'description' => '商品描述', 'gd_name' => '商品名称', 'gd_description' => '商品描述', 'gd_keywords' => '商品关键字', 'in_stock' => '库存', 'ord' => '排序权重', 'other_ipu_cnf' => '其他输入框配置', 'picture' => '商品图片', 'retail_price' => '零售价', 'sales_volume' => '销量', 'type' => '商品类型', 'buy_limit_num' => '限制单次购买最大数量', 'wholesale_price_cnf' => '批发价配置', 'automatic_delivery' => '自动发货', 'manual_processing' => '人工处理', 'is_open' => '是否上架', 'coupon_id' => '可用优惠码' ], 'options' => [ ], 'helps' => [ 'retail_price' => '可以不填写,主要用于展示', 'picture' => '可不上传,为默认图片', 'in_stock' => '当商品类型为"人工处理"时,手动填写的库存数量才会生效。"自动发货"类型的商品系统会自动识别库存数量', 'buy_limit_num' => '防止恶意刷库存,0为不限制客户单次下单最大数量', 'other_ipu_cnf' => '格式为[唯一标识(英文)=输入框名字=是否必填],例如:填写 qq_account=QQ账号=true 表示产品详情页会新增一个 [QQ账号] 输入框,客户可在其中输入 [QQ账号],true 为必填,false 为选填。(一行一个)', 'wholesale_price_cnf' => '例如:填写 5=3 表示客户购买 5 件或以上时,每件价格为 3 元。一行一个', ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/emailtpl.php
resources/lang/zh_CN/emailtpl.php
<?php return [ 'labels' => [ 'Emailtpl' => '邮件模板', 'emailtpl' => '邮件模板', ], 'fields' => [ 'tpl_name' => '邮件标题', 'tpl_content' => '邮件内容', 'tpl_token' => '邮件标识', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/menu.php
resources/lang/zh_CN/menu.php
<?php return [ 'titles' => [ 'index' => '主页', 'admin' => '系统', 'users' => '管理员', 'roles' => '角色', 'permission' => '权限', 'menu' => '菜单', 'operation_log' => '操作日志', 'helpers' => '开发工具', 'extensions' => '扩展', 'scaffold' => '代码生成器', 'icons' => '图标', 'goods_manage' => '商品管理', 'goods' => '商品列表', 'goods_group' => '商品分类', 'carmis_manage' => '卡密管理', 'carmis' => '卡密列表', 'import_carmis' => '导入卡密', 'coupon_manage' => '优惠管理', 'coupon' => '优惠码列表', 'configuration' => '配置', 'email_template_configuration' => '邮件模板配置', 'pay_configuration' => '支付配置', 'order_manage' => '销售数据', 'order' => '订单列表', 'system_setting' => '系统设置', 'email_test' => '邮件测试' ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/goods-group.php
resources/lang/zh_CN/goods-group.php
<?php return [ 'labels' => [ 'GoodsGroup' => '分类', 'goods-group' => '分类', ], 'fields' => [ 'gp_name' => '分类名称', 'is_open' => '是否启用', 'ord' => '排序权重 越大越靠前', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/hyper.php
resources/lang/zh_CN/hyper.php
<?php return [ # Hyper Theme 'notice_announcement' => '公告', 'error_back_btn' => '返回', 'error_error' => '错误', 'order_search' => '查询订单', 'global_currency' => '¥', # home.blade.php 'home_title' => '主页', 'home_search_box' => '输入关键词搜索...', 'home_product_name' => '商品名称', 'home_product_class' => '类型', 'home_in_stock' => '库存', 'home_price' => '价格', 'home_place_an_order' => '操作', 'home_discount' => '折扣', 'home_automatic_delivery' => '自动发货', 'home_charge' => '人工发货', 'home_buy' => '购买', 'home_out_of_stock' => '缺货', 'home_whole' => '全部', 'home_tip' =>'提示', 'home_sell_out_tip' =>'商品缺货', # buy.blade.php 'buy_title' => '产品详细信息', 'buy_automatic_delivery' => '自动发货', 'buy_charge' => '人工发货', 'buy_purchase' => '购买', 'buy_the_above' => '件起', 'buy_each' => '元/件', 'buy_price' => '价格', 'buy_email' => '电子邮箱', 'buy_input_account' => '接收卡密或通知', 'buy_purchase_quantity' => '购买数量', 'buy_in_stock' => '库存', 'buy_purchase_restrictions' => '限购', 'buy_search_password' => '查询密码', 'buy_input_search_password' => '查询订单密码', 'buy_promo_code' => '优惠码', 'buy_input_promo_code' => '您有优惠码吗?', 'buy_choose_payment_method' => '请选择支付方式', 'buy_behavior_verification' => '行为验证', 'buy_verify_code' => '验证码', 'buy_payment_method' => '支付方式', 'buy_order_now' => '提交订单', 'buy_product_desciption' => '商品详情', 'buy_warning' => '警告!', 'buy_purchase_tips' => '提示', 'buy_empty_mailbox' => '邮箱不能为空!', 'buy_zero_quantity' => '购买数量不能为 0!', 'buy_exceeds_stock' => '数量不允许大于库存!', 'buy_exceeds_limit' => '已超过限购数量!', 'buy_empty_query_password' => '查询密码不能为空!', 'buy_empty_payment_method' => '未选择支付方式!', 'buy_empty_captcha' => '验证码不能为空!', 'buy_correct_verification' => '请正确完成行为验证!', # bill.blade.php 'bill_title' => '确认订单', 'bill_order_number' => '订单号', 'bill_product_name' => '订单名称', 'bill_commodity_price' => '商品单价', 'bill_purchase_quantity' => '购买数量', 'bill_promo_code' => '优惠码', 'bill_discounted_price' => '优惠金额', 'bill_actual_payment' => '商品总价', 'bill_email' => '邮箱', 'bill_order_information' => '订单资料', 'bill_payment_method' => '支付方式', 'bill_pay_immediately' => '立即支付', # orderinfo.blade.php 'orderinfo_title' => '订单详情', 'orderinfo_order_title' => '订单名称', 'orderinfo_number_of_orders' => '下单数量', 'orderinfo_order_time' => '下单时间', 'orderinfo_email' => '邮箱', 'orderinfo_order_class' => '订单类型', 'orderinfo_automatic_delivery' => '自动发货', 'orderinfo_charge' => '人工发货', 'orderinfo_total_order_price' => '订单总价', 'orderinfo_order_status' => '订单状态', 'orderinfo_status_expired' => '已过期', 'orderinfo_status_wait_pay' => '待支付', 'orderinfo_status_pending' => '待处理', 'orderinfo_status_processed' => '已处理', 'orderinfo_status_completed' => '已完成', 'orderinfo_status_failed' => '已失败', 'orderinfo_status_abnormal' => '状态异常', 'orderinfo_payment_method' => '支付方式', 'orderinfo_carmi' => '卡密', 'orderinfo_copy_carmi' => '复制卡密', 'orderinfo_tips' => '提示', 'orderinfo_copy_success' => '复制成功', 'orderinfo_copy_error' => '复制失败', 'orderinfo_order_information' => '没有找到订单信息', # qrpay.blade.php 'qrpay_title' => '扫码支付', 'qrpay_order_expiration_date' => '订单有效期', 'qrpay_expiration_date' => '分钟', 'qrpay_actual_payment' => '商品总价', 'qrpay_open_app_to_pay' => '打开app支付', 'qrpay_notice' => '通知', 'payment_successful' => '支付成功!', 'order_pay_timeout' => '支付超时!', # searchOrder.blade.php 'searchOrder_title' => '查询订单', 'searchOrder_query_tips' => '注意:最多只能查询近5笔订单。', 'searchOrder_order_search_by_number' => '订单', 'searchOrder_order_search_by_email' => '邮箱', 'searchOrder_order_search_by_ie' => '缓存', 'searchOrder_order_number' => '订单号', 'searchOrder_search_now' => '立即查询', 'searchOrder_reset_order' => '重置', 'searchOrder_email' => '邮箱', 'searchOrder_search_password' => '查询密码', 'searchOrder_input_order_number' => '请输入订单编号', 'searchOrder_input_email' => '请输入邮箱', 'searchOrder_input_query_password' => '请输入查询密码', ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/admin.php
resources/lang/zh_CN/admin.php
<?php return [ 'scaffold' => [ 'header' => '代码生成器', 'choose' => '选择已有数据表', 'table' => '表名', 'model' => '模型', 'controller' => '控制器', 'repository' => '数据仓库', 'add_field' => '添加字段', 'pk' => '主键', 'soft_delete' => '软删除', 'create_migration' => '创建表迁移文件', 'create_model' => '创建模型', 'create_repository' => '创建数据仓库', 'create_controller' => '创建控制器', 'run_migrate' => '创建数据表', 'create_lang' => '创建翻译文件', 'field' => '字段', 'translation' => '翻译', 'comment' => '注释', 'default' => '默认值', 'field_name' => '字段名', 'type' => '类型', 'nullable' => '允许空值', 'key' => '索引', 'translate_title' => '翻译标题', 'sync_translation_with_comment' => '同步翻译与注释', ], 'client' => [ 'delete_confirm' => '确认删除?', 'confirm' => '确认', 'cancel' => '取消', 'refresh_succeeded' => '刷新成功 !', 'submit' => '提交', 'close' => '关闭', 'selected_options' => '已选中:num个选项', 'exceed_max_item' => '已超出最大可选数量', 'no_preview' => '预览失败', '500' => '系统繁忙,请稍后再试!', '403' => '对不起,您没有权限访问,请与管理员联系。', '401' => '请登录!', '419' => '对不起,当前页面已失效,请刷新浏览器。', ], 'home' => '主页', 'online' => '在线', 'login' => '登录', 'logout' => '登出', 'setting' => '设置', 'name' => '名称', 'username' => '用户名', 'old_password' => '旧密码', 'password' => '密码', 'password_confirmation' => '确认密码', 'old_password_error' => '请输入正确的旧密码', 'remember_me' => '记住我', 'user_setting' => '用户设置', 'avatar' => '头像', 'list' => '列表', 'new' => '新增', 'create' => '创建', 'delete' => '删除', 'remove' => '移除', 'edit' => '编辑', 'quick_edit' => '快捷编辑', 'continue_editing' => '继续编辑', 'continue_creating' => '继续创建', 'view' => '查看', 'detail' => '详细', 'browse' => '浏览', 'reset' => '重置', 'export' => '导出', 'batch_delete' => '批量删除', 'save' => '保存', 'refresh' => '刷新', 'order' => '排序', 'expand' => '展开', 'collapse' => '收起', 'filter' => '筛选', 'search' => '搜索', 'close' => '关闭', 'show' => '显示', 'entries' => '条', 'captcha' => '验证码', 'action' => '操作', 'title' => '标题', 'description' => '简介', 'back' => '返回', 'back_to_list' => '返回列表', 'submit' => '提交', 'menu' => '菜单', 'input' => '输入', 'succeeded' => '成功', 'failed' => '失败', 'delete_confirm' => '确认删除?', 'delete_succeeded' => '删除成功 !', 'delete_failed' => '删除失败 !', 'update_succeeded' => '更新成功 !', 'update_failed' => '更新失败 !', 'save_succeeded' => '保存成功 !', 'save_failed' => '保存失败 !', 'refresh_succeeded' => '刷新成功 !', 'login_successful' => '登录成功 !', 'choose' => '选择', 'choose_file' => '选择文件', 'choose_image' => '选择图片', 'more' => '更多', 'deny' => '无权访问', 'administrator' => '管理员', 'roles' => '角色', 'permissions' => '权限', 'slug' => '标识', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'alert' => '注意', 'parent_id' => '父级', 'icon' => '图标', 'uri' => '路径', 'operation_log' => '操作日志', 'parent_select_error' => '父级选择错误', 'default' => '默认', 'table' => '表格', 'no_data' => '暂无数据', 'routes' => '路由', 'alias' => '别名', 'route_action' => '处理器', 'middleware' => '中间件', 'import' => '导入', 'is_not_import' => '未导入', 'selected_options' => '已选中:num个选项', 'method' => '方法', 'user' => '用户', 'pagination' => [ 'range' => '从 :first 到 :last ,总共 :total 条', ], 'role' => '角色', 'permission' => '权限', 'route' => '路由', 'confirm' => '确认', 'cancel' => '取消', 'selectall' => '全选', 'http' => [ 'method' => 'HTTP方法', 'path' => 'HTTP路径', ], 'all_methods_if_empty' => '为空默认为所有方法', 'all' => '全部', 'current_page' => '当前页', 'selected_rows' => '选择的行', 'upload' => '上传', 'new_folder' => '新建文件夹', 'time' => '时间', 'size' => '大小', 'between_start' => '起始', 'between_end' => '结束', 'next_page' => '下一页', 'prev_page' => '上一页', 'next_step' => '下一步', 'prev_step' => '上一步', 'done' => '完成', 'listbox' => [ 'text_total' => '总共 {0} 项', 'text_empty' => '空列表', 'filtered' => '{0} / {1}', 'filter_clear' => '显示全部', 'filter_placeholder' => '过滤', ], 'responsive' => [ 'display_all' => '显示全部', 'display' => '字段', 'focus' => '聚焦', ], 'uploader' => [ 'add_new_media' => '添加文件', 'drag_file' => '或将文件拖到这里', 'max_file_limit' => 'The :attribute may not be greater than :max.', 'exceed_size' => '文件大小超出', 'interrupt' => '上传暂停', 'upload_failed' => '上传失败,请重试', 'selected_files' => '选中:num个文件,共:size。', 'selected_has_failed' => '已成功上传:success个文件,:fail个文件上传失败,<a class="retry" href="javascript:"";">重新上传</a>失败文件或<a class="ignore" href="javascript:"";">忽略</a>', 'selected_success' => '共:num个(:size),已上传:success个。', 'dot' => ',', 'failed_num' => '失败:fail个。', 'pause_upload' => '暂停上传', 'go_on_upload' => '继续上传', 'start_upload' => '开始上传', 'upload_success_message' => '已成功上传:success个文件', 'go_on_add' => '继续添加', 'Q_TYPE_DENIED' => '对不起,不允许上传此类型文件', 'Q_EXCEED_NUM_LIMIT' => '对不起,已超出文件上传数量限制,最多只能上传:num个文件', 'F_EXCEED_SIZE' => '对不起,当前选择的文件过大', 'Q_EXCEED_SIZE_LIMIT' => '对不起,已超出文件大小限制', 'F_DUPLICATE' => '文件重复', 'confirm_delete_file' => '您确定要删除这个文件吗?', ], 'import_extension_confirm' => '确认导入拓展?', 'quick_create' => '快速创建', 'grid_items_selected' => '已选择 {n} 项', 'nothing_updated' => '没有任何数据被更改', 'welcome_back' => '欢迎回来,请登录您的账号。', 'documentation' => '文档', 'demo' => '示例', 'extensions' => '扩展', 'version' => '版本', 'current_version' => '当前版本', 'latest_version' => '最新版本', 'upgrade_to_version' => '更新至版本 :version', 'enable' => '启用', 'disable' => '禁用', 'uninstall' => '卸载', 'confirm_uninstall' => '您确定要卸载当前扩展吗?此操作将会移除扩展数据!', 'marketplace' => '应用市场', 'theme' => '主题', 'application' => '应用', 'install_from_local' => '本地安装', 'install_succeeded' => '安装成功', 'invalid_extension_package' => '安装包异常', 'copied' => '已复制', 'auth_failed' => '账号或密码错误', 'validation' => [ 'match' => '与 :attribute 不匹配。', 'minlength' => ':attribute 字符长度不能少于 :min。', 'maxlength' => ':attribute 字符长度不能超出 :max。', ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/dujiaoka.php
resources/lang/zh_CN/dujiaoka.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ return [ 'official_website' => '官网', 'dashboard' => '仪表盘', 'dashboard_description' => '每个梦想的路上,一起前行....!', 'join_qq_group' => '加入qq群', 'join_telegram_group' => '加入tg群', 'is_open' => '是否启用', 'trashed' => '回收站', 'restore' => '恢复', 'are_you_restore_sure' => '确定恢复吗?', 'restored' => '已恢复', 'ord' => '数值越大,排名越靠前', 'status_open' => '启用', 'status_close' => '禁用', 'sales_data' => '销售数据', 'order_success_rate' => '订单成交率', 'order_count_number' => '总订单数', 'last_seven_days' => '最近7天', 'last_today' => '今天', 'last_month' => '最近一个月', 'last_year' => '最近一年', 'status_pending_number' => '待处理订单数', 'status_processing_number' => '处理中订单数', 'status_completed_number' => '已完成订单数', 'status_failure_number' => '失败订单数', 'status_abnormal_number' => '异常订单数', 'payment_chart' => '支付数据', 'payment_successful_number' => '支付成功数', 'unpaid_number' => '未支付数', 'sales_chart' => '销售额', 'popular_goods' => '受欢迎的商品', 'warning_title' => '请注意!!', 'error_title' => '出现错误了哟~', 'callback' => '返回', 'reset' => '重置', 'search_now' => '立即查询', 'home_page' => '首页', 'group_all' => '全部', 'order_search' => '订单查询', 'site_announcement' => '公告', 'price' => '价格', 'wholesale_discount' => '批发价', 'order_now' => '下单', 'not' => '无', 'close' => '关闭', 'discount' => '折', 'home_discount' => '折扣', 'share_qr' => '分享此商品', 'by_amount' => '购买', 'or_the_above' => '件或以上', 'each' => '每个', 'email' => '邮箱', 'payment_method' => '支付方式', 'search_password' => '订单查询密码', 'img_verify_code' => '图形验证码', 'coupon_code' => '优惠码', 'copy_text' => '复制', 'search_goods_name' => '商品名称...', 'behavior_verification' => '行为验证', 'click_to_behavior_verification' => '点击进行此处行为验证', 'success_behavior_verification' => '已完成行为验证', 'fail_behavior_verification' => '行为验证失败', 'please_complete_the_behavior_verification_correctly' => '请正确完成行为验证', 'confirm_order' => '确认订单', 'date_to_expired_order' => ':min分钟内未完成支付订单将作废', 'order_information' => '订单资料', 'pay_immediately' => '立即支付', 'amount_to_be_paid' => '需要支付金额', 'open_the_app_to_pay' => '打开 APP 支付', 'order_search_by_sn' => '订单号查询', 'order_search_by_email' => '下单邮箱查询', 'order_search_by_browser' => '浏览器查询', 'scan_qrcode_to_pay' => '扫码支付', 'pay_order_expiration_date_prompt' => '请打开 APP 扫码支付!有效期:min分钟', 'money_symbol' => '¥', 'purchase_limit' => '每单限', 'prompt' => [ 'server_illegal_request' => '非法请求!', 'the_goods_is_not_on_the_shelves' => '该商品未上架!', 'wholesale_price_format_error' => '批发价设置有误', 'by_amount_not_null' => '购买数量不能为0', 'inventory_shortage' => '库存不足', 'please_select_mode_of_payment' => '请选择支付方式', 'goods_does_not_exist' => '商品不存在', 'search_password_can_not_be_empty' => '请填写订单查询密码', 'image_verify_code_error' => '图形验证码错误', 'buy_amount_format_error' => '请正确填写购买数量', 'email_format_error' => '请正确填写邮箱', 'geetest_validate_fail' => '行为验证未通过', 'purchase_limit_exceeded' => '单笔购买数量超过限制', 'coupon_does_not_exist' => '优惠码不存在', 'coupon_lack_of_available_opportunities' => '优惠码可使用次数不足', 'can_not_be_empty' => '不能为空', 'order_does_not_exist' => '订单不存在', 'order_is_expired' => '订单已过期,请重新下单', 'order_already_paid' => '订单已经支付过了,请勿重复支付', 'order_status_completed' => '订单已经处理', 'order_inconsistent_amounts' => '订单金额不一致', 'order_carmis_insufficient_quantity_available' => '库存可使用卡密不足,请联系管理员核查', 'pay_gateway_does_not_exist' => '支付网关不存在', 'abnormal_payment_channel' => '支付网关异常!', 'payment_successful' => '支付成功!', 'copy_text_success' => '复制成功', 'copy_text_failed' => '复制失败', 'search_order_browser_tips' => '最多只能查询最近 5 笔订单', 'no_related_order_found_for_cache' => '未找到相关订单缓存!', 'no_related_order_found' => '未找到相关订单!', 'new_order_push' => '新订单通知', 'loop_carmis_limit' => '此商品最多购买一件!' ], 'equipment' => [ 'please_use_a_browser_to_open' => '请使用内置浏览器打开', 'does_not_support_wechat_or_qq_access' => '本站不支持 微信或QQ 内访问', 'please_follow_the_prompts_to_open' => '请按提示在手机 浏览器 打开', 'open_browser_tips' => '点击右上角···图标 or 复制网址自行打开', 'apple_device' => '苹果设备', 'android_device' => '安卓设备', 'click_on_the_upper_right_corner' => '点击右上角', 'open_the_browser' => '在 浏览器 打开', 'what_do_you_need_today' => '今天需要一点什么?', 'self_promotion' => '优质的商品和卓越的客户服务代表完美的交易流程体现。', ], 'page-title' => [ 'home' => '首页', 'bill' => '订单确认', 'order-detail' => '订单详情', 'order-search' => '订单查询' ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/global.php
resources/lang/zh_CN/global.php
<?php return [ 'fields' => [ 'id' => 'ID', 'name' => '名称', 'username' => '用户名', 'email' => '邮箱', 'http_path' => 'HTTP路径', 'password' => '密码', 'password_confirmation' => '确认密码', 'created_at' => '创建时间', 'updated_at' => '更新时间', 'permissions' => '权限', 'slug' => '标识', 'user' => '用户', 'order' => '排序', 'ip' => 'IP', 'method' => '方法', 'uri' => 'URI', 'roles' => '角色', 'path' => '路径', 'input' => '输入', 'type' => '类型', ], 'labels' => [ 'list' => '列表', 'edit' => '编辑', 'detail' => '详细', 'create' => '创建', 'root' => '顶级', 'scaffold' => '代码生成器', ], 'options' => [ // ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/order.php
resources/lang/zh_CN/order.php
<?php return [ 'labels' => [ 'Order' => '订单', 'order' => '订单', ], 'fields' => [ 'actual_price' => '实际支付价格', 'buy_amount' => '购买数量', 'buy_ip' => '购买者下单IP地址', 'coupon_discount_price' => '优惠码优惠价格', 'coupon_id' => '优惠码', 'email' => '下单邮箱', 'goods_id' => '所属商品', 'goods_price' => '商品单价', 'info' => '订单详情', 'order_id' => '订单ID', 'order_sn' => '订单号', 'pay_id' => '支付通道', 'status' => '订单状态', 'search_pwd' => '查询密码', 'title' => '订单名称', 'total_price' => '订单总价', 'trade_no' => '第三方支付订单号', 'type' => '订单类型', 'wholesale_discount_price' => '批发价优惠', 'status_wait_pay' => '待支付', 'status_pending' => '待处理', 'status_processing' => '处理中', 'status_completed' => '已完成', 'status_failure' => '失败', 'status_abnormal' => '异常', 'status_expired' => '已过期', 'order_created' => '订单创建时间', 'order_detail' => '订单详情', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/extension.php
resources/lang/zh_CN/extension.php
<?php return [ 'labels' => [ 'Extensions' => '扩展', ], 'fields' => [ 'alias' => '别名', 'description' => '描述', 'authors' => '开发者', 'homepage' => '主页', 'require' => '依赖', 'require_dev' => '开发环境依赖', 'name' => '包名', 'version' => '版本', 'enable' => '启用', 'config' => '配置', 'imported' => '导入', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/luna.php
resources/lang/zh_CN/luna.php
<?php return [ //luna模板 'home_choice_cate' => '选择分类', 'home_choice_goods' => '选择商品', 'order_search_m' => '查单', 'goods_num' => '商品数量', 'goods_disc_1' => '满', 'goods_disc_2' => '个 单价', 'goods_disc_3' => '元/件', 'goods_surplus' => '剩余', 'goods_unit' => '件', 'buy_goods_msg' => '商品详情', 'buy_num' => '购买数量', 'buy_email' => '邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱', 'buy_email_tips' => '填写你的邮箱', 'buy_disc' => '优&nbsp;&nbsp;惠&nbsp;&nbsp;码', 'buy_disc_tips' => '填写你的优惠码', 'buy_pass' => '查询密码', 'buy_pass_tips' => '请填写订单的查询密码', 'buy_code' => '验&nbsp;&nbsp;证&nbsp;&nbsp;码', 'buy_code_tips' => '请输入验证码', 'buy_loading_verification' => '正在加载验证码...', 'buy_order_m' => '手机下单', 'query_no_order' => '没有找到订单信息。', 'query_no_order_tips' => '或许可以检查核对下输入的订单号,邮箱,或者查询密码是否正确哦!!', 'order_number' => '订单编号', 'email' => '订单邮箱', 'order_status' => '订单状态', 'least_one' => '购买数量不能低于1件', 'exceeds' => '购买数量不能多于库存数量', 'exceeds_limit' => '购买数量不能多于限购数量', 'mobile_order' => '扫描二维码 手机下单' ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/pay.php
resources/lang/zh_CN/pay.php
<?php return [ 'labels' => [ 'Pay' => '支付通道', 'pay' => '支付通道', ], 'fields' => [ 'merchant_id' => '商户 ID', 'merchant_key' => '商户 KEY', 'merchant_pem' => '商户密钥', 'pay_check' => '支付标识', 'pay_client' => '支付场景', 'pay_handleroute' => '支付处理路由', 'pay_method' => '支付方式', 'pay_name' => '支付名称', 'is_open' => '是否启用', 'method_jump' => '跳转', 'method_scan' => '扫码', 'pay_client_pc' => '电脑PC', 'pay_client_mobile' => '手机', 'pay_client_all' => '通用', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/coupon.php
resources/lang/zh_CN/coupon.php
<?php return [ 'labels' => [ 'Coupon' => '优惠码', 'coupon' => '优惠码', ], 'fields' => [ 'type' => '优惠类型', 'discount' => '优惠金额', 'is_use' => '是否已经使用', 'is_open' => '是否启用', 'coupon' => '优惠码', 'ret' => '剩余使用次数', 'type_one_time' => '一次性使用', 'type_repeat' => '重复使用', 'status_use' => '已使用', 'status_unused' => '未使用', 'goods_id' => '可用商品' ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/email-test.php
resources/lang/zh_CN/email-test.php
<?php /** * The file was created by Assimon. * * @author ZhangYiQiu<me@zhangyiqiu.net> * @copyright ZhangYiQiu<me@zhangyiqiu.net> * @link http://zhangyiqiu.net/ */ return [ 'labels' => [ 'success' => '发送成功', 'to' => '收件人', 'title' => '邮件标题', 'body' => '邮件内容', ], 'fields' => [ ], 'options' => [ ], 'rule_messages' => [ ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/system-setting.php
resources/lang/zh_CN/system-setting.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ return [ 'labels' => [ 'SystemSetting' => '系统设置', 'system_setting' => '系统设置', 'base_setting' => '基本设置', 'mail_setting' => '邮件服务', 'order_push_setting' => '订单推送配置', 'geetest' => '极验验证', ], 'fields' => [ 'title' => '网站标题', 'text_logo' => '文字LOGO', 'img_logo' => '图片LOGO', 'keywords' => '网站关键词', 'description' => '网站描述', 'notice' => '站点公告', 'footer' => '页脚自定义代码', 'manage_email' => '管理员邮箱', 'is_open_anti_red' => '是否开启微信/QQ防红', 'is_open_img_code' => '是否开启图形验证码', 'is_open_search_pwd' => '是否开启查询密码', 'is_open_google_translate' => '是否开启google翻译', 'is_open_server_jiang' => '是否开启server酱', 'server_jiang_token' => 'server酱通讯token', 'is_open_telegram_push' => '是否开启Telegram推送', 'telegram_userid' => 'Telegram用户id', 'telegram_bot_token' => 'Telegram通讯token', 'is_open_bark_push' => '是否开启Bark推送', 'is_open_bark_push_url' => '是否推送订单URL', 'bark_server' => 'Bark服务器', 'bark_token' => 'Bark通讯Token', 'is_open_qywxbot_push' => '是否开启企业微信Bot推送', 'qywxbot_key' => '企业微信Bot通讯Key', 'template' => '站点模板', 'language' => '站点语言', 'order_expire_time' => '订单过期时间(分钟)', 'driver' => '邮件驱动', 'host' => 'smtp服务器地址', 'port' => '端口', 'username' => '账号', 'password' => '密码', 'encryption' => '协议', 'from_address' => '发件地址', 'from_name' => '发件名称', 'geetest_id' => '极验id', 'geetest_key' => '极验key', 'is_open_geetest' => '是否开启极验', ], 'options' => [ ], 'rule_messages' => [ 'save_system_setting_success' => '系统配置保存成功!', 'change_reboot_php_worker' => '修改部分配置需要重启[supervisor]或php进程管理工具才会生效,例如邮件服务,server酱等。' ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_CN/carmis.php
resources/lang/zh_CN/carmis.php
<?php return [ 'labels' => [ 'Carmis' => '卡密', 'carmis' => '卡密', ], 'fields' => [ 'goods_id' => '所属商品', 'status' => '状态', 'carmi' => '卡密内容', 'status_unsold' => '未售出', 'status_sold' => '已售出', 'is_loop' => '循环卡密', 'yes'=>'是', 'import_carmis' => '导入卡密', 'carmis_list' => '卡密列表', 'carmis_txt' => '卡密文本', 'are_you_import_sure' => '确定要导入卡密吗?', 'remove_duplication' => '是否去重', ], 'options' => [ ], 'helps' => [ 'carmis_list' => '一行一个,回车分隔。请勿导入单个文本长度过大的卡密,容易导致内存溢出。如果卡密过大建议修改商品为人工处理' ], 'rule_messages' => [ 'carmis_list_and_carmis_txt_can_not_be_empty' => '请填写需要导入的卡密或选择需要上传的卡密文件', 'import_carmis_success' => '导入卡密成功!' ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/goods.php
resources/lang/zh_TW/goods.php
<?php return [ 'labels' => [ 'Goods' => '商品', 'goods' => '商品', ], 'fields' => [ 'actual_price' => '實際售價', 'group_id' => '所屬分類', 'api_hook' => '回調事件', 'buy_prompt' => '購買提示', 'description' => '商品描述', 'gd_name' => '商品名稱', 'gd_description' => '商品描述', 'gd_keywords' => '商品關鍵字', 'in_stock' => '庫存', 'ord' => '排序權重', 'other_ipu_cnf' => '其他輸入框配置', 'picture' => '商品圖片', 'retail_price' => '零售價', 'sales_volume' => '銷量', 'type' => '商品類型', 'buy_limit_num' => '限製單次購買最大數量', 'wholesale_price_cnf' => '批發價配置', 'automatic_delivery' => '自動發貨', 'manual_processing' => '人工處理', 'is_open' => '是否上架', 'coupon_id' => '可用折扣碼' ], 'options' => [ ], 'helps' => [ 'retail_price' => '可以不填寫,主要用於展示', 'picture' => '可不上傳,為預設圖片', 'in_stock' => '當商品類型為"人工處理"時,手動填寫的庫存數量才會生效。"自動發貨"類型的商品系統會自動識別庫存數量', 'buy_limit_num' => '防止惡意刷庫存,0為不限製客戶單次下單最大數量', 'other_ipu_cnf' => '格式為[唯一標識(英文)=輸入框名字=是否必填],例如:填寫 line_account=Line賬戶=true 表示產品詳情頁會新增一個 [Line賬戶] 輸入框,客戶可在其中輸入 [Line賬戶],true 為必填,false 為選填。(一行一個)', 'wholesale_price_cnf' => '例如:填寫 5=3 表示客戶購買 5 件或以上時,每件價格為 3 元。一行一個', ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/emailtpl.php
resources/lang/zh_TW/emailtpl.php
<?php return [ 'labels' => [ 'Emailtpl' => '郵件模板', 'emailtpl' => '郵件模板', ], 'fields' => [ 'tpl_name' => '郵件標題', 'tpl_content' => '郵件內容', 'tpl_token' => '郵件標識', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/menu.php
resources/lang/zh_TW/menu.php
<?php return [ 'titles' => [ 'index' => '首頁', 'admin' => '系統', 'users' => '管理員', 'roles' => '角色', 'permission' => '權限', 'menu' => '選單', 'operation_log' => '動作日誌', 'helpers' => '開發工具', 'extensions' => '擴展', 'scaffold' => '代碼生成器', 'icons' => '圖標', 'goods_manage' => '商品管理', 'goods' => '商品清單', 'goods_group' => '商品分類', 'carmis_manage' => '卡密管理', 'carmis' => '卡密清單', 'import_carmis' => '匯入卡密', 'coupon_manage' => '折扣管理', 'coupon' => '折扣碼清單', 'configuration' => '配置', 'email_template_configuration' => '信箱模板配置', 'pay_configuration' => '支付配置', 'order_manage' => '銷售數據', 'order' => '訂單清單', 'system_setting' => '系統設定' ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/goods-group.php
resources/lang/zh_TW/goods-group.php
<?php return [ 'labels' => [ 'GoodsGroup' => '分類', 'goods-group' => '分類', ], 'fields' => [ 'gp_name' => '分類名稱', 'is_open' => '是否啟用', 'ord' => '排序權重 越大越靠前', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/hyper.php
resources/lang/zh_TW/hyper.php
<?php return [ # Hyper Theme 'notice_announcement' => '公告', 'error_back_btn' => '返回', 'error_error' => '錯誤', 'order_search' => '查詢訂單', 'global_currency' => '$', # home.blade.php 'home_title' => '首頁', 'home_search_box' => '輸入關鍵詞搜尋...', 'home_product_name' => '商品名稱', 'home_product_class' => '類型', 'home_in_stock' => '庫存', 'home_price' => '價格', 'home_place_an_order' => '操作', 'home_discount' => '折扣', 'home_automatic_delivery' => '自動發貨', 'home_charge' => '人工發貨', 'home_buy' => '購買', 'home_out_of_stock' => '售罄', 'home_whole' => '全部', 'home_tip' =>'提示', 'home_sell_out_tip' =>'商品缺貨', # buy.blade.php 'buy_title' => '產品詳細資訊', 'buy_automatic_delivery' => '自動發貨', 'buy_charge' => '人工發貨', 'buy_purchase' => '購買', 'buy_the_above' => '件起', 'buy_each' => '元/件', 'buy_price' => '價格', 'buy_email' => '電子信箱', 'buy_input_account' => '接收卡密或通知', 'buy_purchase_quantity' => '購買數量', 'buy_in_stock' => '庫存', 'buy_purchase_restrictions' => '限購', 'buy_search_password' => '查詢密碼', 'buy_input_search_password' => '查詢訂單密碼', 'buy_promo_code' => '折扣碼', 'buy_input_promo_code' => '您有折扣碼嗎?', 'buy_choose_payment_method' => '請選取支付方式', 'buy_behavior_verification' => '行為驗證', 'buy_verify_code' => '驗證碼', 'buy_payment_method' => '支付方式', 'buy_order_now' => '提交訂單', 'buy_product_desciption' => '商品詳情', 'buy_warning' => '警告!', 'buy_purchase_tips' => '提示', 'buy_empty_mailbox' => '信箱不能為空!', 'buy_zero_quantity' => '購買數量不能為 0!', 'buy_exceeds_stock' => '數量不允許大於庫存!', 'buy_exceeds_limit' => '已超過限購數量!', 'buy_empty_query_password' => '查詢密碼不能為空!', 'buy_empty_payment_method' => '未選取支付方式!', 'buy_empty_captcha' => '驗證碼不能為空!', 'buy_correct_verification' => '請正確完成行為驗證!', # bill.blade.php 'bill_title' => '確認訂單', 'bill_order_number' => '訂單號', 'bill_product_name' => '訂單名稱', 'bill_commodity_price' => '商品單價', 'bill_purchase_quantity' => '購買數量', 'bill_promo_code' => '折扣碼', 'bill_discounted_price' => '折扣金額', 'bill_actual_payment' => '商品總價', 'bill_email' => '信箱', 'bill_order_information' => '訂單資料', 'bill_payment_method' => '支付方式', 'bill_pay_immediately' => '立即支付', # orderinfo.blade.php 'orderinfo_title' => '訂單詳情', 'orderinfo_order_title' => '訂單名稱', 'orderinfo_number_of_orders' => '下單數量', 'orderinfo_order_time' => '下單時間', 'orderinfo_email' => '信箱', 'orderinfo_order_class' => '訂單類型', 'orderinfo_automatic_delivery' => '自動發貨', 'orderinfo_charge' => '人工發貨', 'orderinfo_total_order_price' => '訂單總價', 'orderinfo_order_status' => '訂單狀態', 'orderinfo_status_expired' => '已逾期', 'orderinfo_status_wait_pay' => '待支付', 'orderinfo_status_pending' => '待處理', 'orderinfo_status_processed' => '已處理', 'orderinfo_status_completed' => '已完成', 'orderinfo_status_failed' => '已失敗', 'orderinfo_status_abnormal' => '狀態異常', 'orderinfo_payment_method' => '支付方式', 'orderinfo_carmi' => '卡密', 'orderinfo_copy_carmi' => '復製卡密', 'orderinfo_tips' => '提示', 'orderinfo_copy_success' => '復製成功', 'orderinfo_copy_error' => '復製失敗', 'orderinfo_order_information' => '沒有找到訂單資訊', # qrpay.blade.php 'qrpay_title' => '掃碼支付', 'qrpay_order_expiration_date' => '訂單有效期', 'qrpay_expiration_date' => '分鐘', 'qrpay_actual_payment' => '商品總價', 'qrpay_open_app_to_pay' => '打開app支付', 'qrpay_notice' => '通知', 'payment_successful' => '支付成功!', 'order_pay_timeout' => '支付逾時!', # searchOrder.blade.php 'searchOrder_title' => '查詢訂單', 'searchOrder_query_tips' => '註意:最多只能查詢近5筆訂單。', 'searchOrder_order_search_by_number' => '訂單', 'searchOrder_order_search_by_email' => '信箱', 'searchOrder_order_search_by_ie' => '緩存', 'searchOrder_order_number' => '訂單號', 'searchOrder_search_now' => '立即查詢', 'searchOrder_reset_order' => '重設', 'searchOrder_email' => '信箱', 'searchOrder_search_password' => '查詢密碼', 'searchOrder_input_order_number' => '請輸入訂單編號', 'searchOrder_input_email' => '請輸入信箱', 'searchOrder_input_query_password' => '請輸入查詢密碼', ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/admin.php
resources/lang/zh_TW/admin.php
<?php return [ 'scaffold' => [ 'header' => '代碼生成器', 'choose' => '選取已有數據表', 'table' => '表名', 'model' => '模型', 'controller' => '控製器', 'repository' => '數據倉庫', 'add_field' => '加入欄位', 'pk' => '主鍵', 'soft_delete' => '軟刪除', 'create_migration' => '建立表遷移檔案', 'create_model' => '建立模型', 'create_repository' => '建立數據倉庫', 'create_controller' => '建立控製器', 'run_migrate' => '建立數據表', 'create_lang' => '建立翻譯檔案', 'field' => '欄位', 'translation' => '翻譯', 'comment' => '註解', 'default' => '預設值', 'field_name' => '欄位名', 'type' => '類型', 'nullable' => '允許null', 'key' => '索引', 'translate_title' => '翻譯標題', 'sync_translation_with_comment' => '同步翻譯與注解', ], 'client' => [ 'delete_confirm' => '確認刪除?', 'confirm' => '確認', 'cancel' => '取消', 'refresh_succeeded' => '重新整理成功 !', 'submit' => '提交', 'close' => '關閉', 'selected_options' => '已選取:num個選項', 'exceed_max_item' => '已超過最大可選數量', 'no_preview' => '預覽失敗', '500' => '系統繁忙,請稍後再試!', '403' => '對不起,您沒有權限存取,請洽詢管理員。', '401' => '請登入!', '419' => '對不起,目前頁面已失效,請重新整理瀏覽器。', ], 'home' => '首頁', 'online' => '線上', 'login' => '登入', 'logout' => '登出', 'setting' => '設定', 'name' => '名稱', 'username' => '使用者名稱', 'old_password' => '舊密碼', 'password' => '密碼', 'password_confirmation' => '確認密碼', 'old_password_error' => '請輸入正確的舊密碼', 'remember_me' => '記住我', 'user_setting' => '用戶設定', 'avatar' => '頭像', 'list' => '清單', 'new' => '新增', 'create' => '建立', 'delete' => '刪除', 'remove' => '移除', 'edit' => '編輯', 'quick_edit' => '快速編輯', 'continue_editing' => '繼續編輯', 'continue_creating' => '繼續建立', 'view' => '檢視', 'detail' => '詳細', 'browse' => '瀏覽', 'reset' => '重設', 'export' => '導出', 'batch_delete' => '批次刪除', 'save' => '儲存', 'refresh' => '重新整理', 'order' => '排序', 'expand' => '展開', 'collapse' => '收起', 'filter' => '過濾', 'search' => '搜尋', 'close' => '關閉', 'show' => '顯示', 'entries' => '條', 'captcha' => '驗證碼', 'action' => '操作', 'title' => '標題', 'description' => '描述', 'back' => '返回', 'back_to_list' => '返回清單', 'submit' => '提交', 'menu' => '選單', 'input' => '輸入', 'succeeded' => '成功', 'failed' => '失敗', 'delete_confirm' => '確認刪除?', 'delete_succeeded' => '刪除成功 !', 'delete_failed' => '刪除失敗 !', 'update_succeeded' => '更新成功 !', 'update_failed' => '更新失敗 !', 'save_succeeded' => '儲存成功 !', 'save_failed' => '儲存失敗 !', 'refresh_succeeded' => '重新整理成功 !', 'login_successful' => '登入成功 !', 'choose' => '選取', 'choose_file' => '選取檔案', 'choose_image' => '選取圖片', 'more' => '更多', 'deny' => '無權存取', 'administrator' => '管理員', 'roles' => '角色', 'permissions' => '權限', 'slug' => '標識', 'created_at' => '建立時間', 'updated_at' => '更新時間', 'alert' => '註意', 'parent_id' => '父級', 'icon' => '圖標', 'uri' => '路徑', 'operation_log' => '操作日誌', 'parent_select_error' => '父級選取錯誤', 'default' => '預設', 'table' => '表格', 'no_data' => '暫無數據', 'routes' => '路由', 'alias' => '別名', 'route_action' => '處理器', 'middleware' => '中間件', 'import' => '匯入', 'is_not_import' => '未匯入', 'selected_options' => '已選取:num個選項', 'method' => '方法', 'user' => '用戶', 'pagination' => [ 'range' => '從 :first 到 :last ,總共 :total 條', ], 'role' => '角色', 'permission' => '權限', 'route' => '路由', 'confirm' => '確認', 'cancel' => '取消', 'selectall' => '全選', 'http' => [ 'method' => 'HTTP方法', 'path' => 'HTTP路徑', ], 'all_methods_if_empty' => '為空預設為所有方法', 'all' => '全部', 'current_page' => '目前頁', 'selected_rows' => '選取的行', 'upload' => '上傳', 'new_folder' => '建立檔案夾', 'time' => '時間', 'size' => '大小', 'between_start' => '開始', 'between_end' => '結束', 'next_page' => '下一頁', 'prev_page' => '上一頁', 'next_step' => '下一步', 'prev_step' => '上一步', 'done' => '完成', 'listbox' => [ 'text_total' => '總共 {0} 項', 'text_empty' => '空清單', 'filtered' => '{0} / {1}', 'filter_clear' => '顯示全部', 'filter_placeholder' => '過濾', ], 'responsive' => [ 'display_all' => '顯示全部', 'display' => '欄位', 'focus' => '聚焦', ], 'uploader' => [ 'add_new_media' => '加入檔案', 'drag_file' => '或將檔案拖到這裏', 'max_file_limit' => 'The :attribute may not be greater than :max.', 'exceed_size' => '檔案大小超過', 'interrupt' => '上傳暫停', 'upload_failed' => '上傳失敗,請重試', 'selected_files' => '選取:num個檔案,共:size。', 'selected_has_failed' => '已成功上傳:success個檔案,:fail個檔案上傳失敗,<a class="retry" href="javascript:"";">重新上傳</a>失敗檔案或<a class="ignore" href="javascript:"";">忽略</a>', 'selected_success' => '共:num個(:size),已上傳:success個。', 'dot' => ',', 'failed_num' => '失敗:fail個。', 'pause_upload' => '暫停上傳', 'go_on_upload' => '繼續上傳', 'start_upload' => '開始上傳', 'upload_success_message' => '已成功上傳:success個檔案', 'go_on_add' => '繼續加入', 'Q_TYPE_DENIED' => '對不起,不允許上傳此類型檔案', 'Q_EXCEED_NUM_LIMIT' => '對不起,已超過檔案上傳數量限製,最多只能上傳:num個檔案', 'F_EXCEED_SIZE' => '對不起,目前選取的檔案過大', 'Q_EXCEED_SIZE_LIMIT' => '對不起,已超過檔案大小限製', 'F_DUPLICATE' => '檔案重復', 'confirm_delete_file' => '您確定要刪除這個檔案嗎?', ], 'import_extension_confirm' => '確認匯入拓展?', 'quick_create' => '快速建立', 'grid_items_selected' => '已選取 {n} 項', 'nothing_updated' => '沒有任何數據被更改', 'welcome_back' => '歡迎回來,請登入您的賬戶。', 'documentation' => '文檔', 'demo' => '範例', 'extensions' => '擴展', 'version' => '版本', 'current_version' => '目前版本', 'latest_version' => '最新版本', 'upgrade_to_version' => '更新至版本 :version', 'enable' => '啟用', 'disable' => '停用', 'uninstall' => '卸載', 'confirm_uninstall' => '您確定要卸載目前擴展嗎?此動作將會移除擴展數據!', 'marketplace' => '應用市場', 'theme' => '主題', 'application' => '應用', 'install_from_local' => '本地安裝', 'install_succeeded' => '安裝成功', 'invalid_extension_package' => '安裝包異常', 'copied' => '已復製', 'auth_failed' => '賬戶或密碼錯誤', 'validation' => [ 'match' => '與 :attribute 不符。', 'minlength' => ':attribute 字元長度不能少於 :min。', 'maxlength' => ':attribute 字元長度不能超過 :max。', ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/dujiaoka.php
resources/lang/zh_TW/dujiaoka.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ return [ 'official_website' => '官網', 'dashboard' => '儀表盤', 'dashboard_description' => '每個夢想的路上,一起前行....!', 'join_qq_group' => '加入qq群', 'join_telegram_group' => '加入tg群', 'is_open' => '是否啟用', 'trashed' => '回收桶', 'restore' => '恢復', 'are_you_restore_sure' => '確定恢復嗎?', 'restored' => '已恢復', 'ord' => '數值越大,排名越靠前', 'status_open' => '啟用', 'status_close' => '停用', 'sales_data' => '銷售數據', 'order_success_rate' => '訂單成交率', 'order_count_number' => '總訂單數', 'last_seven_days' => '最近7天', 'last_today' => '今天', 'last_month' => '最近一個月', 'last_year' => '最近一年', 'status_pending_number' => '待處理訂單數', 'status_processing_number' => '處理中訂單數', 'status_completed_number' => '已完成訂單數', 'status_failure_number' => '失敗訂單數', 'status_abnormal_number' => '異常訂單數', 'payment_chart' => '支付數據', 'payment_successful_number' => '支付成功數', 'unpaid_number' => '未支付數', 'sales_chart' => '銷售額', 'popular_goods' => '受歡迎的商品', 'warning_title' => '請註意!!', 'error_title' => '出現錯誤了喲~', 'callback' => '返回', 'reset' => '重設', 'search_now' => '立即查詢', 'home_page' => '首頁', 'group_all' => '全部', 'order_search' => '訂單查詢', 'site_announcement' => '公告', 'price' => '價格', 'wholesale_discount' => '批發價', 'order_now' => '下單', 'not' => '無', 'close' => '關閉', 'discount' => '折', 'home_discount' => '折扣', 'share_qr' => '分享此商品', 'by_amount' => '購買', 'or_the_above' => '件或以上', 'each' => '每個', 'email' => '信箱', 'payment_method' => '支付方式', 'search_password' => '訂單查詢密碼', 'img_verify_code' => '圖形驗證碼', 'coupon_code' => '折扣碼', 'copy_text' => '復製', 'search_goods_name' => '商品名稱...', 'behavior_verification' => '行為驗證', 'click_to_behavior_verification' => '點擊進行此處行為驗證', 'success_behavior_verification' => '已完成行為驗證', 'fail_behavior_verification' => '行為驗證失敗', 'please_complete_the_behavior_verification_correctly' => '請正確完成行為驗證', 'confirm_order' => '確認訂單', 'date_to_expired_order' => ':min分鐘內未完成支付訂單將作廢', 'order_information' => '訂單資料', 'pay_immediately' => '立即支付', 'amount_to_be_paid' => '需要支付金額', 'open_the_app_to_pay' => '打開 APP 支付', 'order_search_by_sn' => '訂單號查詢', 'order_search_by_email' => '下單信箱查詢', 'order_search_by_browser' => '瀏覽器查詢', 'scan_qrcode_to_pay' => 'QRcode掃碼支付', 'pay_order_expiration_date_prompt' => '請打開 APP 掃描 QRcode 支付!有效期:min分鐘', 'money_symbol' => '¥', 'purchase_limit' => '每單限', 'prompt' => [ 'server_illegal_request' => '非法請求!', 'the_goods_is_not_on_the_shelves' => '該商品未上架!', 'wholesale_price_format_error' => '批發價設定有誤', 'by_amount_not_null' => '購買數量不能為0', 'inventory_shortage' => '庫存不足', 'please_select_mode_of_payment' => '請選取支付方式', 'goods_does_not_exist' => '商品不存在', 'search_password_can_not_be_empty' => '請填寫訂單查詢密碼', 'image_verify_code_error' => '圖形驗證碼錯誤', 'buy_amount_format_error' => '請正確填寫購買數量', 'email_format_error' => '請正確填寫信箱', 'geetest_validate_fail' => '行為驗證未通過', 'purchase_limit_exceeded' => '單筆購買數量超過限製', 'coupon_does_not_exist' => '折扣碼不存在', 'coupon_lack_of_available_opportunities' => '折扣碼可使用次數不足', 'can_not_be_empty' => '不能為空', 'order_does_not_exist' => '訂單不存在', 'order_is_expired' => '訂單已逾期,請重新下單', 'order_already_paid' => '訂單已經支付過了,請勿重復支付', 'order_status_completed' => '訂單已經處理', 'order_inconsistent_amounts' => '訂單金額不一致', 'order_carmis_insufficient_quantity_available' => '庫存可使用卡密不足,請聯系管理員核查', 'pay_gateway_does_not_exist' => '支付網關不存在', 'abnormal_payment_channel' => '支付網關異常!', 'payment_successful' => '支付成功!', 'copy_text_success' => '復製成功', 'copy_text_failed' => '復製失敗', 'search_order_browser_tips' => '最多只能查詢最近 5 筆訂單', 'no_related_order_found_for_cache' => '未找到相關訂單快取!', 'no_related_order_found' => '未找到相關訂單!', 'new_order_push' => '新訂單通知' ], 'equipment' => [ 'please_use_a_browser_to_open' => '請使用內建瀏覽器打開', 'does_not_support_wechat_or_qq_access' => '本站不支持 Wechat或QQ 內存取', 'please_follow_the_prompts_to_open' => '請按提示在行動電話 瀏覽器 打開', 'open_browser_tips' => '點擊右上角···圖標 or 復製網址自行打開', 'apple_device' => '蘋果設備', 'android_device' => '安卓設備', 'click_on_the_upper_right_corner' => '點擊右上角', 'open_the_browser' => '在 瀏覽器 打開', 'what_do_you_need_today' => '今天需要一點什麽?', 'self_promotion' => '優質的商品和卓越的客戶服務代表完美的交易流程體現。', ], 'page-title' => [ 'home' => '首頁', 'bill' => '訂單確認', 'order-detail' => '訂單詳情', 'order-search' => '訂單查詢' ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/global.php
resources/lang/zh_TW/global.php
<?php return [ 'fields' => [ 'id' => 'ID', 'name' => '名稱', 'username' => '賬戶', 'email' => '信箱', 'http_path' => 'HTTP路徑', 'password' => '密碼', 'password_confirmation' => '確認密碼', 'created_at' => '建立時間', 'updated_at' => '更新時間', 'permissions' => '權限', 'slug' => '標識', 'user' => '用戶', 'order' => '排序', 'ip' => 'IP', 'method' => '方法', 'uri' => 'URI', 'roles' => '角色', 'path' => '路徑', 'input' => '輸入', 'type' => '類型', ], 'labels' => [ 'list' => '清單', 'edit' => '編輯', 'detail' => '詳細', 'create' => '建立', 'root' => '根', 'scaffold' => '代碼生成器', ], 'options' => [ // ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/order.php
resources/lang/zh_TW/order.php
<?php return [ 'labels' => [ 'Order' => '訂單', 'order' => '訂單', ], 'fields' => [ 'actual_price' => '實際支付價格', 'buy_amount' => '購買數量', 'buy_ip' => '購買者下單IP地址', 'coupon_discount_price' => '折扣碼折扣價格', 'coupon_id' => '折扣碼', 'email' => '下單信箱', 'goods_id' => '所屬商品', 'goods_price' => '商品單價', 'info' => '訂單詳情', 'order_sn' => '訂單號', 'pay_id' => '支付通道', 'status' => '訂單狀態', 'search_pwd' => '查詢密碼', 'title' => '訂單名稱', 'total_price' => '訂單總價', 'trade_no' => '第三方支付訂單號', 'type' => '訂單類型', 'wholesale_discount_price' => '批發價折扣', 'status_wait_pay' => '待支付', 'status_pending' => '待處理', 'status_processing' => '處理中', 'status_completed' => '已完成', 'status_failure' => '失敗', 'status_abnormal' => '異常', 'status_expired' => '已逾期', 'order_created' => '訂單建立時間', 'order_detail' => '訂單詳情', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/extension.php
resources/lang/zh_TW/extension.php
<?php return [ 'labels' => [ 'Extensions' => '擴展', ], 'fields' => [ 'alias' => '別名', 'description' => '描述', 'authors' => '開發者', 'homepage' => '首頁', 'require' => '依賴', 'require_dev' => '開發環境依賴', 'name' => '包名', 'version' => '版本', 'enable' => '啟用', 'config' => '配置', 'imported' => '匯入', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/luna.php
resources/lang/zh_TW/luna.php
<?php return [ //luna模板 'home_choice_cate' => '選取分類', 'home_choice_goods' => '選取商品', 'order_search_m' => '查單', 'goods_num' => '商品數量', 'goods_disc_1' => '滿', 'goods_disc_2' => '個 單價', 'goods_disc_3' => '元/件', 'goods_surplus' => '剩余', 'goods_unit' => '件', 'buy_goods_msg' => '商品詳情', 'buy_num' => '購買數量', 'buy_email' => '信&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;箱', 'buy_email_tips' => '填寫你的信箱', 'buy_disc' => '折&nbsp;&nbsp;扣&nbsp;&nbsp;碼', 'buy_disc_tips' => '填寫你的折扣碼', 'buy_pass' => '查詢密碼', 'buy_pass_tips' => '請填寫訂單的查詢密碼', 'buy_code' => '驗&nbsp;&nbsp;證&nbsp;&nbsp;碼', 'buy_code_tips' => '請輸入驗證碼', 'buy_loading_verification' => '正在加載驗證碼...', 'buy_order_m' => '行動電話下單', 'query_no_order' => '沒有找到訂單資訊。', 'query_no_order_tips' => '或許可以檢查核實下輸入的訂單號,信箱,或者查詢密碼是否正確哦!!', 'order_number' => '訂單編號', 'email' => '訂單信箱', 'order_status' => '訂單狀態', 'least_one' => '購買數量不能低於1件', 'exceeds' => '購買數量不能多於庫存數量', 'exceeds_limit' => '購買數量不能多於限購數量', 'mobile_order' => '掃描QRcode 行動電話下單' ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/pay.php
resources/lang/zh_TW/pay.php
<?php return [ 'labels' => [ 'Pay' => '支付通道', 'pay' => '支付通道', ], 'fields' => [ 'merchant_id' => '商戶 ID', 'merchant_key' => '商戶 KEY', 'merchant_pem' => '商戶金鑰', 'pay_check' => '支付標識', 'pay_client' => '支付場景', 'pay_handleroute' => '支付處理路由', 'pay_method' => '支付方式', 'pay_name' => '支付名稱', 'is_open' => '是否啟用', 'method_jump' => '跳躍', 'method_scan' => '掃碼', 'pay_client_pc' => '計算機PC', 'pay_client_mobile' => '行動電話', 'pay_client_all' => '通用', ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/coupon.php
resources/lang/zh_TW/coupon.php
<?php return [ 'labels' => [ 'Coupon' => '折扣碼', 'coupon' => '折扣碼', ], 'fields' => [ 'type' => '折扣類型', 'discount' => '折扣金額', 'is_use' => '是否已經使用', 'is_open' => '是否啟用', 'coupon' => '折扣碼', 'ret' => '剩余使用次數', 'type_one_time' => '一次性使用', 'type_repeat' => '重復使用', 'status_use' => '已使用', 'status_unused' => '未使用', 'goods_id' => '可用商品' ], 'options' => [ ], ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false
assimon/dujiaoka
https://github.com/assimon/dujiaoka/blob/8bb5701ecfc1d2a45cf4bef119e3e4496170002d/resources/lang/zh_TW/system-setting.php
resources/lang/zh_TW/system-setting.php
<?php /** * The file was created by Assimon. * * @author assimon<ashang@utf8.hk> * @copyright assimon<ashang@utf8.hk> * @link http://utf8.hk/ */ return [ 'labels' => [ 'SystemSetting' => '系統設定', 'system_setting' => '系統設定', 'base_setting' => '基本設定', 'mail_setting' => '信箱服務', 'order_push_setting' => '訂單推送配置', 'geetest' => '極驗驗證', ], 'fields' => [ 'title' => '網站標題', 'text_logo' => '文字LOGO', 'img_logo' => '圖片LOGO', 'keywords' => '網站關鍵詞', 'description' => '網站描述', 'notice' => '站點公告', 'footer' => '頁尾自訂代碼', 'manage_email' => '管理員信箱', 'is_open_anti_red' => '是否開啟Wechat/QQ防紅', 'is_open_img_code' => '是否開啟圖形驗證碼', 'is_open_search_pwd' => '是否開啟查詢密碼', 'is_open_server_jiang' => '是否開啟server醬', 'server_jiang_token' => 'server醬通訊token', 'is_open_telegram_push' => '是否開啟Telegram推送', 'telegram_userid' => 'Telegram用戶id', 'telegram_bot_token' => 'Telegram通訊token', 'template' => '站點模板', 'language' => '站點語言', 'order_expire_time' => '訂單逾期時間(分鐘)', 'driver' => '信箱驅動', 'host' => 'smtp伺服器地址', 'port' => '通訊埠', 'username' => '賬戶', 'password' => '密碼', 'encryption' => '協議', 'from_address' => '發件地址', 'from_name' => '發件名稱', 'geetest_id' => '極驗id', 'geetest_key' => '極驗key', 'is_open_geetest' => '是否開啟極驗', ], 'options' => [ ], 'rule_messages' => [ 'save_system_setting_success' => '系統配置套用成功!', 'change_reboot_php_worker' => '修改部分配置需要重新啓動[supervisor]或php進程管理工具才會生效,例如信箱服務,server醬等。' ] ];
php
MIT
8bb5701ecfc1d2a45cf4bef119e3e4496170002d
2026-01-04T15:03:57.345282Z
false