正在显示
2 个修改的文件
包含
9 行增加
和
2 行删除
@@ -98,9 +98,10 @@ class LogisticsController extends AdminBaseController | @@ -98,9 +98,10 @@ class LogisticsController extends AdminBaseController | ||
98 | } | 98 | } |
99 | $info = $this->logistics_model->where(['express'=>$insert['express']])->find(); | 99 | $info = $this->logistics_model->where(['express'=>$insert['express']])->find(); |
100 | if($info) { | 100 | if($info) { |
101 | + $update['update_time'] = time(); | ||
101 | if(!$this->logistics_model->where(['id'=>$info['id']])->update($update)) { | 102 | if(!$this->logistics_model->where(['id'=>$info['id']])->update($update)) { |
102 | Db::rollback(); | 103 | Db::rollback(); |
103 | - $this->error('数据导入中出错,请重试'); | 104 | + $this->error('数据导入中出错,请重试'.$info['id']); |
104 | } | 105 | } |
105 | } else { | 106 | } else { |
106 | if(!$this->logistics_model->addLogistics($insert)) { | 107 | if(!$this->logistics_model->addLogistics($insert)) { |
@@ -113,7 +113,13 @@ class MemberSalesController extends HomeBaseController | @@ -113,7 +113,13 @@ class MemberSalesController extends HomeBaseController | ||
113 | 113 | ||
114 | // 选择类型 | 114 | // 选择类型 |
115 | public function order_type() { | 115 | public function order_type() { |
116 | - $typeList = $this->singleData($this->table,['delete_time'=>0],1); | 116 | + $sale_id = cmf_get_current_user_sale_id(); |
117 | + $where = [ | ||
118 | + 'id' => $sale_id | ||
119 | + ]; | ||
120 | + $allow_order = Db::name('MemberSales')->where($where)->value('allow_order'); | ||
121 | + $allow_order_array = explode(',',$allow_order); | ||
122 | + $typeList = $this->singleData($this->table,['id'=>['in',$allow_order_array],'delete_time'=>0],1); | ||
117 | $this->assign('typeList',$typeList); | 123 | $this->assign('typeList',$typeList); |
118 | return $this->fetch(); | 124 | return $this->fetch(); |
119 | } | 125 | } |
-
请 注册 或 登录 后发表评论