ThinkPHP3中Model类$_auto使用回调函数

protected $_auto=[
	['sell_uptown','update_sell_uptown',3,'callback'],
];

protected function update_sell_uptown(){
	if(I('sell_uptown_id')==-1){
		return I('sell_uptown');
	}else{
		return '';
	}
}

猜你喜欢

转载自blog.csdn.net/sr_www/article/details/84176879