Fecmall

第 2 位会员

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

文件路径?

fecshop更新到1.7版本,上传一级分类弹出部分右侧的图片内容时报错6年前

对于category descript,是代码:https://github.com/fecshop/yii2_fecshop/blob/master/app/appadmin/modules/Catalog/block/category/Index.php#L279

这里配置的,也就是textarea部分,是继承的父类函数实现,配置url是:https://github.com/fecshop/yii2_fecshop/blob/master/app/appadmin/modules/AppadminbaseBlockEdit.php#L58

$upImgUrl = Yii::$service->admin->getXhEditorUploadImgUrl();
        $upImgFormat = Yii::$service->admin->getXhEditorUploadImgForamt();
        $upFlashUrl = Yii::$service->admin->getXhEditorUploadFlashUrl();
        $upFlashFormat = Yii::$service->admin->getXhEditorUploadFlashFormat();
        $upLinkUrl = Yii::$service->admin->getXhEditorUploadLinkUrl();
        $upLinkFormat = Yii::$service->admin->getXhEditorUploadLinkFormat();
        $upMediaUrl = Yii::$service->admin->getXhEditorUploadMediaUrl();
        $upMediaFormat = Yii::$service->admin->getXhEditorUploadMediaFormat();

因此是admin services提供的图片上传的url。

https://github.com/fecshop/yii2_fecshop/blob/master/services/Admin.php#L49

这个是整个分析,您可以自己debug一下问题原因。

js冲突6年前

看不明白,仔细看一遍发帖说明:http://www.fecshop.com/topic/624

那个端口,怎么加的js,报什么错误,这些总得说清楚,让别人可以重现你的问题吧?

感觉很专业,请问如何才能像你一样开发这样的商城系统或者二次开发,作为新手我该学习什么方面的课程6年前

1.fec本身是一个简单的东西,为了满足很多场景才慢慢复杂起来

2.先学习下yii2知识吧,因为fecshop基于yii2框架开发的,多阅读yii2框架的底层代码

3.fec有完善的文档,可以看相应的文档,慢慢切入学习

4.加油!

appserver 的 /catalog/category/index 接口出现 the $sort key specification must be an object 错误6年前

去debug一下报错的底层函数吧,这些只是表象

我的本地无法重现,帮不上忙了,自己解决吧

appserver 的 /catalog/category/index 接口出现 the $sort key specification must be an object 错误6年前

教你个办法,报错的是一个函数,你在报错的地方打印数据,比对一下两个接口(一个正确,一个错误)调用的数据有什么不同,然后分析一下。

{"name":"MongoDB Exception","message":"the $sort key specification must be an object","code":15973,"type":"yii\\mongodb\\Exception","file":"/mnt/hgfs/mywww/zl-mark/server/fecshop/vendor/yiisoft/yii2-mongodb/src/Command.php","line":192,"stack-trace":["#0 /mnt/hgfs/mywww/zl-mark/server/fecshop/vendor/yiisoft/yii2-mongodb/src/Command.php(739): yii\\mongodb\\Command->execute()",

"#1 /mnt/hgfs/mywww/zl-mark/server/fecshop/vendor/yiisoft/yii2-mongodb/src/Collection.php(370): yii\\mongodb\\Command->aggregate('product_flat', Array, Array)"
appserver 的 /catalog/category/index 接口出现 the $sort key specification must be an object 错误6年前

你的意思是, /catalog/category/index这个接口没有问题,没有报错,而你开发的/catalog/category/zl-server 这个api有问题?出现上述的错误?

你好,开发过程中发现登录用户支付订单成功后发送邮件启用的配置是【订单-游客】的配置6年前

1.appserver入口,是否登陆的验证,是 request header里面的access-token进行验证的

当用户登陆成功后,appserver api的reponse header会返回access-token,vue端接收到后会存储到local storage,然后每次请求 request header都加入access-token,api接收到通过这个识别登陆身份

因此,我猜测你的reponse header没有加入access-token,导致没有登陆身份

2.代码追踪:

https://github.com/fecshop/yii2_fecshop/blob/master/app/appserver/modules/AppserverTokenController.php#L49

https://github.com/fecshop/yii2_fecshop/blob/master/yii/filters/auth/QueryParamAuth.php#L27

https://github.com/fecshop/yii2_fecshop/blob/master/services/Customer.php#L676

appserver 的 /catalog/category/index 接口出现 the $sort key specification must be an object 错误6年前

mongodb版本是多少?建议3.6以上 php-mongodb 的版本说一下,是自己搭建的,还是用官方给与的docker搭建的?

可能是环境的问题

fecshop的演示:http://demo.fancyecommerce.com/#/catalog/category/57bea0e3f656f275313bf56e

这个接口是没有问题的,另外你的fecshop是那个版本呢?

你好,开发过程中发现登录用户支付订单成功后发送邮件启用的配置是【订单-游客】的配置6年前

你用的fecshop是那个入口? appfront还是appserver?

如果是appserver入口,是官方的vue?还是你们自己开发的前端?

发帖的时候,信息尽量的多写

支付时出现了错误6年前

@Axin #3楼 嗯,你提交的PR,关于这个的,已经合并了,多谢。

Your Site Analytics