Fecmall

第 2 位会员

会员
个人信息
  • 加入于 2017-05-31 17:38:45
  • 城市 Qingdao
  • GitHub https://github.com/fecshop
  • 最后登录时间 12天前
  • 签名 净化自己,潜心编码
个人简介
Terry,Fecmall开源产品作者,12年电商经验一线程序员开发者,擅长规划产品,架构设计。
个人成就
  • 发表文章次数 744
  • 发布回复次数 5760
  • 个人主页浏览次数 683
不能上传中文名称的图片8年前

嗯,目前是这个样子,因为linux的一个文件夹下面的文件如果超过1万个,寻找文件就会比较慢,因此对文件按照字母,设置了2层文件夹,分别取图片文件的第一个和第二个字母,作为文件夹的名字,

譬如:jacker.png 文件上传后的路径为 j/a/jacker.png,因此,中文在切字母会出问题。

这个我记一下,我找时间改改,如果是中文名,就替换成随机字符,然后在执行上面的操作。

多谢提交的bug。

apidoc生成API文档的软件,8年前

看不懂,请描述清楚,如何操作的,结果不一样,请用详细的信息说明

产品无法加入购物车,无法登录8年前

@asion #15楼 action的方式,是为了log打印services各个方法的调用,以及耗费的时间的,在service/Service.php就可以看到。

产品无法加入购物车,无法登录8年前

@asion #13楼 你试试phpstorm,我一般用notepad,这个不跳转。

求 在线demo 是参考哪个网站的8年前

手机端模板,也是非常的简单,自己二开模板就好了。

产品无法加入购物车,无法登录8年前

@asion #9楼 详细说一下,没有看明白,到底是不是bug? 是不是index.php里面的session domain没有设置导致的?

【置顶】Fecmall 线上项目案例8年前

有bug,可以提交过来,凡是bug问题,100%处理。

稳定是相对的,用的人多,发现的bug多,问题就越少

fecshop不是做一个功能繁杂的电商系统,而是做一个基础的电商框架,用于程序员开发,给程序员一个高起点, 实现的是电商系统的一些通用功能,因此,伸手党们多动手,动手不够,就动脑。

求 在线demo 是参考哪个网站的8年前

参考了很多外贸网站,我不是专业前端,前端模板做的一般,不过,这个不重要,你可以根据自己的需求做模板开发,定制自己想要的模板。

添加产品时页面崩溃8年前

后台尽量使用 谷歌 火狐浏览器, 其他的浏览器没有测试过

产品无法加入购物车,无法登录8年前

@asion #5楼 你清除下cookie试试。或者自己找找问题到底出现在哪里。

Fatal error: Class 'fecshop\services\Application' 8年前

严格按照文档安装,不会少文件,不按照文档操作的报错就不要发了

php mongodb版本问题8年前

你是按照文档给予的教程安装的php mongodb扩展,还是自己安装的, 你说的插件指的是php-mongodb扩展吗?

产品无法加入购物车,无法登录8年前

1.redis 版本要高,注意,redis版本一定要高,2.2.7一下的版本是不行的,不支持php-redis,建议安装2.8+的版本 , 参看 : http://www.fancyecommerce.com/2016/05/03/yii2-redis-配置/

2.session.cookie_domain 的问题,打开@app/web(appfront 或者apphtml5,是不同入口的@app)目录 ,在里面打开index.php fr/index.php 等各个语言对应的index.php文件,在第三行会发现代码

ini_set('session.cookie_domain', '.fecshop.com'); //初始化域名,

.fecshop.com 替换成您的域名保存即可,这个部分是为了在不同的子域名做session共享,如果您的域名只有一个域名,各个语言是通过 www.domain.com www.domain.com/fr www.domain.com/cn 这种方式搞的, 那么直接注释上面的代码行即可。

如果es.domain.com fr.domain.com 这种不同的子域名,需要设置成.domain.com

安装时jquery.inputmask包找不到8年前

这个是一个Yii2框架依赖包版本问题导致的,是最近几天的出现的,详情参看: https://github.com/yiisoft/yii2/issues/14275

解决步骤:

composer create-project fancyecommerce/fecshop-app-advanced fecshop 1.0.2.9 出现报错后,

cd fecshop 
vim composer.json

打开composer.json后

config部分配置修改为:

 "config": {
        "process-timeout": 1800,
        "fxp-asset": {
          "installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
          },
          "repositories": [
            {
              "type": "bower-vcs",
              "url": "https://github.com/RobinHerbots/Inputmask.git",
              "name": "bower-asset/jquery.inputmask"
            }
          ]
        }

    },

修改完的composer.json的文件完整内容如下:

{
    "name": "yiisoft/yii2-app-advanced",
    "description": "Yii 2 Advanced Project Template",
    "keywords": ["yii2", "fecshop","cart", "shop", "e-commerce"],
    "homepage": "http://www.fecshop.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "forum": "http://www.fecshop.com/forum/",
        "wiki": "http://www.fecshop.com/wiki/",
        "source": "https://github.com/fancyecommerce/yii2_fecshop_app_advanced"
    },
    "minimum-stability": "stable",
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": ">=2.0.6",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
		"yiisoft/yii2-apidoc": "~2.0.0",
        "fancyecommerce/fecshop": ">=1.1.3.3"
    },
    "require-dev": {
        "yiisoft/yii2-codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
       
    },
    "config": {
        "process-timeout": 1800,
        "fxp-asset": {
          "installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
          },
          "repositories": [
            {
              "type": "bower-vcs",
              "url": "https://github.com/RobinHerbots/Inputmask.git",
              "name": "bower-asset/jquery.inputmask"
            }
          ]
        }

    },
    "extra": {
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    },
    "scripts": {
        "post-install-cmd": "php init --env=Development --overwrite=n"
    }
}

修改完成后,在fecshop文件夹下执行 composer update 即可通过安装

后面按照文档一步一步的执行:http://www.fecshop.com/doc/fecshop-guide/develop/cn-1.0/guide-fecshop-about-hand-install.html

我的安装log为:

[root@localhost fecshop]# composer update
Do not run Composer as root/super user! See https://getcomposer.org/root for details
The "extra.asset-installer-paths" option is deprecated, use the "config.fxp-asset.installer-paths" option
Loading composer repositories with packagUpdating dependencies (including require-dev)                                                            
Package operations: 48 installs, 0 updates, 0 removals     
  - Installing yiisoft/yii2-composer (2.0.5): Downloading (100%)         
  - Installing hightman/xunsearch (1.4.10): Downloading (100%)         
  - Installing tubalmartin/cssmin (v4.1.0): Downloading (100%)         
  - Installing pimple/pimple (v3.0.2): Downloading (100%)         
  - Installing psr/container (1.0.0): Downloading (100%)         
  - Installing container-interop/container-interop (1.2.0): Downloading (100%)         
  - Installing mrclay/props-dic (2.2.0): Downloading (100%)         
  - Installing mrclay/jsmin-php (2.3.2): Downloading (100%)         
  - Installing psr/log (1.0.2): Downloading (100%)         
  - Installing monolog/monolog (1.22.1): Downloading (100%)         
  - Installing intervention/httpauth (2.0.2): Downloading (100%)         
  - Installing mrclay/minify (3.0.1): Downloading (100%)         
  - Installing natxet/cssmin (v3.0.4): Downloading (100%)         
  - Installing tedivm/jshrink (v1.1.0): Downloading (100%)         
  - Installing bower-asset/jquery (2.2.4): Downloading (100%)         
  - Installing bower-asset/yii2-pjax (v2.0.6): Downloading (100%)         
  - Installing bower-asset/punycode (v1.3.2): Downloading (100%)         
  - Installing cebe/markdown (1.0.2): Downloading (100%)         
  - Installing ezyang/htmlpurifier (v4.9.3): Downloading (100%)         
  - Installing bower-asset/jquery.inputmask (3.3.7): Downloading (100%)         
  - Installing yiisoft/yii2 (2.0.12): Downloading (100%)         
  - Installing skeeks/yii2-assets-auto-compress (1.2.3): Downloading (100%)         
  - Installing yiisoft/yii2-mongodb (2.1.3): Downloading (100%)         
  - Installing phpoffice/phpexcel (1.8.1): Downloading (100%)         
  - Installing yiisoft/yii2-redis (2.0.6): Downloading (100%)         
  - Installing imagine/imagine (v0.5.0): Downloading (100%)         
  - Installing fancyecommerce/fec (1.1.3.2): Downloading (100%)         
  - Installing fancyecommerce/fec_admin (1.3.6.7): Downloading (100%)         
  - Installing fancyecommerce/fecshop (1.1.3.3): Downloading (100%)         
  - Installing swiftmailer/swiftmailer (v5.4.8): Downloading (100%)         
  - Installing yiisoft/yii2-swiftmailer (2.0.7): Downloading (100%)         
  - Installing scrivo/highlight.php (v8.9.1): Downloading (100%)         
  - Installing mikevanriel/text-to-latex (1.0.1): Downloading (100%)         
  - Installing cebe/markdown-latex (1.1.4): Downloading (100%)         
  - Installing cebe/js-search (0.9.3): Downloading (100%)         
  - Installing nikic/php-parser (v0.9.5): Downloading (100%)         
  - Installing phpdocumentor/reflection-docblock (2.0.5): Downloading (100%)         
  - Installing phpdocumentor/reflection (1.0.7): Downloading (100%)         
  - Installing bower-asset/bootstrap (v3.3.7): Downloading (100%)         
  - Installing yiisoft/yii2-bootstrap (2.0.6): Downloading (100%)         
  - Installing yiisoft/yii2-apidoc (2.0.6): Downloading (100%)         
  - Installing yiisoft/yii2-codeception (2.0.6): Downloading (100%)         
  - Installing yiisoft/yii2-debug (2.0.9): Downloading (100%)         
  - Installing bower-asset/typeahead.js (v0.11.1): Downloading (100%)         
  - Installing phpspec/php-diff (v1.1.0): Downloading (100%)         
  - Installing yiisoft/yii2-gii (2.0.5): Downloading (100%)         
  - Installing fzaninotto/faker (v1.6.0): Downloading (100%)         
  - Installing yiisoft/yii2-faker (2.0.3): Downloading (100%)         
monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messages to AWS services like DynamoDB)
monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)
monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)
monolog/monolog suggests installing mongodb/mongodb (Allow sending log messages to a MongoDB server via PHP Driver)
monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)
monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)
monolog/monolog suggests installing rollbar/rollbar (Allow sending log messages to Rollbar)
monolog/monolog suggests installing ruflin/elastica (Allow sending log messages to an Elastic Search server)
monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)
mrclay/minify suggests installing firephp/firephp-core (Use FirePHP for Log messages)
mrclay/minify suggests installing leafo/lessphp (LESS support)
mrclay/minify suggests installing meenie/javascript-packer (Keep track of the Packer PHP port using Composer)
imagine/imagine suggests installing ext-imagick (to use the Imagick implementation)
imagine/imagine suggests installing ext-gmagick (to use the Gmagick implementation)
phpdocumentor/reflection-docblock suggests installing dflydev/markdown (~1.0)
phpdocumentor/reflection-docblock suggests installing erusev/parsedown (~1.0)
Package yiisoft/yii2-codeception is abandoned, you should avoid using it. Use codeception/codeception instead.
Writing lock file
Generating autoload files
[root@localhost fecshop]# 
yii 对象数组 如何取值8年前

private 这个一看就明白了吧。

Your Site Analytics