|
@@ -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']);
|