Browse Source

同步选房

linwu 3 years ago
parent
commit
566a31eec3
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Admin/Controllers/Content/BuyHouseController.php

+ 2 - 2
app/Admin/Controllers/Content/BuyHouseController.php

@@ -301,7 +301,7 @@ class BuyHouseController extends Controller
         }
         }
 
 
         //TODO:同步选房系统,等接口
         //TODO:同步选房系统,等接口
-        $apply = TalentHouseApply::with('idcard')->where('select_house_no', '<', 999999)->orderBy('select_house_no', 'asc')->get();
+        $apply = TalentHouseApply::with('idcard')->where('house_id', $id)->where('select_house_no', '<', 999999)->orderBy('select_house_no', 'asc')->get();
         if (empty($apply)) {
         if (empty($apply)) {
             return response()->json(['code' => 0, 'content' => '请先填写选房顺序号']);
             return response()->json(['code' => 0, 'content' => '请先填写选房顺序号']);
         }
         }
@@ -346,7 +346,7 @@ class BuyHouseController extends Controller
         }
         }
         $sm4     = new Sm4Service();
         $sm4     = new Sm4Service();
         $sm4_key = 'ydkjjjrcgjrcdrjk';
         $sm4_key = 'ydkjjjrcgjrcdrjk';
-        $ch = curl_init();
+        $ch      = curl_init();
         curl_setopt($ch, CURLOPT_URL, "http://jjzf.fjeda.com:9001/admin/xuanfang/importGaojiRencai");
         curl_setopt($ch, CURLOPT_URL, "http://jjzf.fjeda.com:9001/admin/xuanfang/importGaojiRencai");
         curl_setopt($ch, CURLOPT_HTTPHEADER, [
         curl_setopt($ch, CURLOPT_HTTPHEADER, [
                 'Content-Type: application/json; charset=utf-8'   //json版本需要填写  Content-Type: application/json;
                 'Content-Type: application/json; charset=utf-8'   //json版本需要填写  Content-Type: application/json;