master
fengyuexingzi 7 years ago
parent 62e15e9e47
commit 9a46c6821d

@ -8,7 +8,7 @@ use Illuminate\Support\Facades\Storage;
class UploadController extends Controller class UploadController extends Controller
{ {
const MAX_UPLOAD_NUM = 25; const MAX_UPLOAD_NUM = 25;
const UPLOAD_PATH = 'XiaoT'; const UPLOAD_PATH = 'Mini';
// 待优化 // 待优化
function uploadImg(Request $request) function uploadImg(Request $request)

@ -4,21 +4,21 @@ namespace App\Console\Commands;
use Illuminate\Console\Command; use Illuminate\Console\Command;
class XiaoTInstall extends Command class MiniInstall extends Command
{ {
/** /**
* The name and signature of the console command. * The name and signature of the console command.
* *
* @var string * @var string
*/ */
protected $signature = 'XiaoT:install'; protected $signature = 'Mini:install';
/** /**
* The console command description. * The console command description.
* *
* @var string * @var string
*/ */
protected $description = 'Install XiaoT Shop'; protected $description = 'Install MiniShop';
/** /**
* Create a new command instance. * Create a new command instance.

@ -11,7 +11,6 @@ use App\Http\Resources\ShopTopic as ShopTopicResource;
class IndexController extends ApiController class IndexController extends ApiController
{ {
/** /**
* xiaoT技术首页信息
* @return mixed * @return mixed
*/ */
public function index() public function index()

@ -1,8 +1,5 @@
<?php <?php
/**
* sqc
* xiaoT科技
*/
namespace App\Logic; namespace App\Logic;
use Illuminate\Http\Request; use Illuminate\Http\Request;

@ -57,14 +57,14 @@ return [
'oss' => [ 'oss' => [
'driver' => 'oss', 'driver' => 'oss',
'access_id' => 'LTAIPBwk3qMhHat5', 'access_id' => 'YREDxBwk3qMhHat5',
'access_key' => 'HjAzFWe5ngFdU7n3hwb0Q3UGJoXBoj', 'access_key' => 'sjAzFWe5ngFdU3e3hwb0d3UGJoXBoj',
'bucket' => 'xiaot-static', 'bucket' => 'static',
'endpoint' => 'oss-cn-hangzhou.aliyuncs.com', // OSS 外网节点或自定义外部域名 'endpoint' => 'oss-.aliyuncs.com', // OSS 外网节点或自定义外部域名
//'endpoint_internal' => '<internal endpoint [OSS] oss-cn-shenzhen-internal.aliyuncs.com>', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中) //'endpoint_internal' => '<internal endpoint [OSS] oss-cn-shenzhen-internal.aliyuncs.com>', // v2.0.4 新增配置属性,如果为空,则默认使用 endpoint 配置(由于内网上传有点小问题未解决,请大家暂时不要使用内网节点上传,正在与阿里技术沟通中)
//'cdnDomain' => '<CDN domain, cdn>', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url如果cdnDomain未设置则使用endpoint来生成url否则使用cdn //'cdnDomain' => '<CDN domain, cdn>', // 如果isCName为true, getUrl会判断cdnDomain是否设定来决定返回的url如果cdnDomain未设置则使用endpoint来生成url否则使用cdn
// 'debug' => true, // 'debug' => true,
'url' => 'https://xiaot-static.oss-cn-hangzhou.aliyuncs.com' 'url' => 'https://oss.aliyuncs.com'
], ],
's3' => [ 's3' => [
@ -79,7 +79,7 @@ return [
'driver' => 'local', 'driver' => 'local',
'root' => public_path('uploads'), 'root' => public_path('uploads'),
'visibility' => 'public', 'visibility' => 'public',
'url' => env('API_URL','https://xiaocheng.xuezhangbang.me').'/uploads', 'url' => env('API_URL','').'/uploads',
], ],
], ],

4
mini/app.js vendored

@ -16,8 +16,8 @@ App({
globalData: { globalData: {
userInfo: { userInfo: {
nickname: 'Hi,游客', nickname: '游客',
username: '点击去登录', username: '去登录',
avatar: 'http://mp.fengyuexingzi.top/images/default_head.png' avatar: 'http://mp.fengyuexingzi.top/images/default_head.png'
}, },
token: '', token: '',

@ -16,8 +16,8 @@ Page({
}, },
onShareAppMessage: function () { onShareAppMessage: function () {
return { return {
title: 'XiaoTShop', title: 'MiniShop',
desc: 'XiaoT科技商城', desc: 'MiniShop',
path: '/pages/index/index' path: '/pages/index/index'
} }
}, },

Loading…
Cancel
Save