function getAppointRule(store_id,key=''){
if(key){list= \think\Db::name('course_appoint_rule')
->where('store_id', store_id)
->value(key);
}else{
list=\think\Db::name('course_appoint_rule')
->where('store_id',store_id)
->field('id,store_id',true)->find();
}
return $list;
}
暂无讨论,说说你的看法吧