作者 Cool
1 个管道 的构建 通过 耗费 0 秒

社区入驻接口调整

@@ -307,25 +307,6 @@ class Store extends Api @@ -307,25 +307,6 @@ class Store extends Api
307 $result = $this->store_model->add($param); 307 $result = $this->store_model->add($param);
308 } 308 }
309 $id = $this->store_model->id; 309 $id = $this->store_model->id;
310 - if($param['money'] == 0) {  
311 - $time = time();  
312 - foreach (explode(',',$house_ids) as $v) {  
313 - // 新增社区有效期数据  
314 - $insert = [  
315 - 'user_id' => $param['user_id'],  
316 - 'store_id' => $param['store_id'],  
317 - 'house_id' => $v,  
318 - 'start_time' => $time,  
319 - 'end_time' => $time + config('site.house_valid'),  
320 - 'createtime' => $time,  
321 - 'updatetime' => $time  
322 - ];  
323 - $result_store_house = Db::name('store_house')->insertGetId($insert);  
324 - if(!$result_store_house) {  
325 - Db::rollback();  
326 - }  
327 - }  
328 - }  
329 Db::commit(); 310 Db::commit();
330 } catch (PDOException $e) { 311 } catch (PDOException $e) {
331 Db::rollback(); 312 Db::rollback();