1、提示toArray()报错,请/application/database.php 文件中
该参数改为这样
'resultset_type' => '\\think\\Collection',
2、curl不能支持https问题,次问题根据你的服务器进行配置
1、提示toArray()报错,请/application/database.php 文件中
该参数改为这样
'resultset_type' => '\\think\\Collection',
2、curl不能支持https问题,次问题根据你的服务器进行配置
一、环境要求:
PHP版本要求5.5.5以上,mysql 版本5.0以上
web环境支持nginx、apache
二、安装步骤:
1.创建数据库,倒入数据库文件
数据库文件目录名shop_crmeb.sql,在根目录下.
2.修改数据库连接文件
配置文件路径/application/database.php
3.修改目录权限(linux系统)777
/public
/runtime
4.后台登录:http://域名/admin
默认账号:admin 密码:crmeb.com
5.前端登陆(wap端登陆):http://域名/wap
默认账号:crmeb 密码:123456
6.微信接口配置
http://域名/wechat/Index/serve
token: 32位字符串后台自己配置
微信设置网页授权域名、js安全域名、业务域名配置,
7.微信支付配置
产品支付:http://域名/wap/store/confirm_order/cartId/
拼团支付:http://域名/wap/store/combination_order/
待付款中的支付:http://域名/wap/my/order/uni/
8、微信模版消息选择行业
主营行业:IT科技 | 互联网|电子商务
副营行业:IT科技 | IT软件与服务
三、常见问题
1、安装报错
2、没有配置微信不能用微信访问商城页面
3、默认跳转到http://www.crmeb.com ,注销/application/index/acontroller/Index 里面
public function _empty() { header('Location:http://www.crmeb.net/'); exit; }
注释
//header('Location:http://www.crmeb.net/')
4、修改默认控制器
/application/config.php
// 默认模块名 'default_module' => 'index',//想默认到后台 修改为admin ,想默认到商城页面请修改为 wap
5、路径错误
nginx服务
location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }
iis服务
web.config
<rewrite> <rules> <rule name="OrgPage" stopProcessing="true"> <match url="^(.*)$" /> <conditions logicalGrouping="MatchAll"> <add input="{HTTP_HOST}" pattern="^(.*)$" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php/{R:1}" /> </rule> </rules> </rewrite>
apache服务
.htaccess文件
RewriteEngine on #不显示index.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]