master
fengyuexingzi 7 years ago
parent 62e15e9e47
commit 9a46c6821d

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

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

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

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

@ -57,14 +57,14 @@ return [
'oss' => [
'driver' => 'oss',
'access_id' => 'LTAIPBwk3qMhHat5',
'access_key' => 'HjAzFWe5ngFdU7n3hwb0Q3UGJoXBoj',
'bucket' => 'xiaot-static',
'endpoint' => 'oss-cn-hangzhou.aliyuncs.com', // OSS 外网节点或自定义外部域名
'access_id' => 'YREDxBwk3qMhHat5',
'access_key' => 'sjAzFWe5ngFdU3e3hwb0d3UGJoXBoj',
'bucket' => 'static',
'endpoint' => 'oss-.aliyuncs.com', // OSS 外网节点或自定义外部域名
//'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
// 'debug' => true,
'url' => 'https://xiaot-static.oss-cn-hangzhou.aliyuncs.com'
'url' => 'https://oss.aliyuncs.com'
],
's3' => [
@ -79,7 +79,7 @@ return [
'driver' => 'local',
'root' => public_path('uploads'),
'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: {
userInfo: {
nickname: 'Hi,游客',
username: '点击去登录',
nickname: '游客',
username: '去登录',
avatar: 'http://mp.fengyuexingzi.top/images/default_head.png'
},
token: '',

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

Loading…
Cancel
Save