酒吧房加测试代码判断

This commit is contained in:
2026-01-16 09:00:55 +08:00
parent 54abef6b56
commit 9bec4ef093
4 changed files with 10 additions and 3 deletions

View File

@@ -149,6 +149,11 @@ class Decorate extends Model
*
*/
public function pay_decorate($uid, $did, $day=0,$from_type=1,$give_uid=0,$log_remark="",$num=1){
if(empty($day) && $from_type == 12){
$day = 0;
}else{
$day = db::name('vs_decorate_price')->where(['did'=>$did])->order('day asc')->value('day');
}
if(empty($log_remark)){
$log_remark = $this->FromType[$from_type];
}