This commit is contained in:
unknown 2023-09-04 13:42:32 +08:00
parent ee4693d4a1
commit abe940ee12

View File

@ -27,8 +27,6 @@ class JunziqianController extends BaseApiController
/**默认ts单位:1毫秒,2秒*/
private $tsType;
private $domain = 'https://logistics.lihaink.cn';
/**
* 填充签名数据
* @param $req array
@ -138,7 +136,7 @@ class JunziqianController extends BaseApiController
$request->serverCa = 1; //是否需要服务端云证书
$request->fileType = 1; //合同上传方式 url
$request->url = $data['url'];
$request->notifyUrl = $this->domain.'/api/index/notifyUrl?id='.$id;
$request->notifyUrl = env('project.website_domain').'/api/index/notifyUrl?id='.$id;
$request->needQifengSign = 1;
//发起PING请求
// halt($request);
@ -173,6 +171,7 @@ class JunziqianController extends BaseApiController
//html模板
public function html_contract($data, $id)
{
$requestUtils = new RequestUtils($this->serviceUrl, $this->appkey, $this->appSecret);
//CURLFile 可以传url或filePath但必须保证文件存在且有效否则php不会报错只会导致http请求返回null并没有调到服务端
@ -183,7 +182,7 @@ class JunziqianController extends BaseApiController
$request->serverCa = 1; //是否需要服务端云证书
$request->fileType = 3;
$request->htmlContent = $data['content'];
$request->notifyUrl = $this->domain.'/api/index/notifyUrl?id='.$id;
$request->notifyUrl = env('project.website_domain').'/api/index/notifyUrl?id='.$id;
$request->needQifengSign = 1;
//发起PING请求