Kirin hai 1 ano
pai
achega
096789c39b
Modificáronse 1 ficheiros con 17 adicións e 1 borrados
  1. 17 1
      crmeb/services/WithdrawService.php

+ 17 - 1
crmeb/services/WithdrawService.php

@@ -57,7 +57,23 @@ class WithdrawService
             'cer_reverse_img' => $back_img,//身份证反面照
         ];
         $token = self::$token;
-        $res = json_decode(self::do_request(self::$url . $url, compact('data', 'token'), ['content-type:application/json'], true, true), true);
+        return self::postRequest(self::$url . $url, compact('data', 'token'));
+    }
+
+    public static function contractDo($id)
+    {
+
+        $url = '/Enterprise/contractDo';
+        $data = [
+            'enterprise_professional_facilitator_id' => $id,//姓名
+        ];
+        $token = self::$token;
+        return self::postRequest(self::$url . $url, compact('data', 'token'));
+    }
+
+    public static function postRequest($url, $data)
+    {
+        $res = json_decode(self::do_request($url, $data, ['content-type:application/json'], true, true), true);
         if ($res['code'] == 200) {
             try {
                 return self::decode($res['data']);