...
|
...
|
@@ -113,7 +113,13 @@ class MemberSalesController extends HomeBaseController |
|
|
|
|
|
// 选择类型
|
|
|
public function order_type() {
|
|
|
$typeList = $this->singleData($this->table,['delete_time'=>0],1);
|
|
|
$sale_id = cmf_get_current_user_sale_id();
|
|
|
$where = [
|
|
|
'id' => $sale_id
|
|
|
];
|
|
|
$allow_order = Db::name('MemberSales')->where($where)->value('allow_order');
|
|
|
$allow_order_array = explode(',',$allow_order);
|
|
|
$typeList = $this->singleData($this->table,['id'=>['in',$allow_order_array],'delete_time'=>0],1);
|
|
|
$this->assign('typeList',$typeList);
|
|
|
return $this->fetch();
|
|
|
}
|
...
|
...
|
|