正在显示
1 个修改的文件
包含
0 行增加
和
19 行删除
@@ -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(); |
-
请 注册 或 登录 后发表评论