Commit 94311b2f authored by hujun's avatar hujun

app剩余商铺为0下架

parent 370d96db
......@@ -836,8 +836,15 @@ class GHouses extends BaseModel
} else {
$internal_title = $this->where('id',$params['id'])->where('status','<>',3)->value('internal_title');
if (!empty($internal_title)) {
$params['operation_id'] = empty($params['user_id']) ? 0 : $params['user_id'];
$params['status'] = 1;
//剩余商铺为0下架
if (empty($params['residue_num'])) {
$params['status'] = 2;
} else {
$params['status'] = 1;
}
$params['operation_id'] = $params['userId'];
$this->allowField(true)->isUpdate(true)->save($params, [ 'id' => $params['id'] ]);
$house_id = $this->id;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment