@ -15,4 +15,5 @@
/.env
*.pid
/public/public/qrcode
/vendor/workerman/_www_wwwroot_zhishi.tczxkj.com_think.pid
sftp-config.json
@ -32,7 +32,7 @@ return [
// 数据库表前缀
'prefix' => 'tc_',
// 数据库调试模式
'debug' => false,
'debug' => true,
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
'deploy' => 0,
// 数据库读写是否分离 主从式有效
@ -397,6 +397,7 @@
},
confirmAdd: function () {
if (this.link) {
var that = this;
if (/^https?:\/\/(.+\/)+.+(\.(m3u8|mp4|mp3))$/i.test(this.link)) {
that.is_upload = true;
that.uploadVideo();
@ -67,7 +67,7 @@ class Lecturer extends ModelBasic
if (!$mer_id) return null;
$lecturer_id = Merchant::where('id', $mer_id)->value('lecturer_id');
$details = self::where(['is_del' => 0, 'is_show' => 1])->where('id', $lecturer_id)
->field('id,lecturer_name,lecturer_head,label')->find();
->field('id,lecturer_name,lecturer_head,label,introduction,explain')->find();
if ($details) {
$details['label'] = json_decode($details['label']);
return $details;
@ -67,7 +67,7 @@ class LecturerInstitution extends ModelBasic
$lecturer_id = Institution::where('id', $mer_id)->value('lecturer_id');
->field('id,lecturer_name,lecturer_head,label,introduction')->find();
@ -122,7 +122,7 @@ class StoreCart extends ModelBasic
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public static function getUserProductCartList($uid, $cartIds = '', $status = 0, $is_vip)
public static function getUserProductCartList($uid, $cartIds = '', $status = 0, $is_vip = 0)
{
$productInfoField = 'id,image,slider_image,price,cost,ot_price,vip_price,postage,mer_id,give_gold_num,free_shipping,cate_id,sales,stock,store_name,unit_name,is_show,is_del,is_postage';
$model = new self();
->field('id,lecturer_name,lecturer_head,label,explain')->find();
->field('id,lecturer_name,lecturer_head,label,explain,introduction')->find();
@ -241,8 +241,11 @@ class WapBasic extends Controller
['currentAvatar', ''],
], $request, true);
if (!$ucode)
throw new ValidateException('授权失败,参数有误');
if (!$ucode){
return;
}
//throw new ValidateException('授权失败,参数有误');
try {
$userInfoCong = MiniProgramService::getUserInfo($ucode);
$session_key = $userInfoCong['session_key'];