6

我已经为“Start_Date”尝试了 2 到 3 种日期格式的可能性,例如

  1. 30-05-2018
  2. 05-30-2018
  3. 2018 年 5 月 30 日

但我得到的回应是

无法将值“30-05-2018”评估为日期类型。

以下是我的功能

public function getPriceList($customer_number){
    $url = 'Page/CustomerPrices';
    try {
        $response = new \stdClass();
        $response->status = false;
        $options = [
          'soap_version' => SOAP_1_1,
          'connection_timeout' => 120,
          'login' => env('MICROSOFT_DYNAMICS_NAV_USERNAME', ''),
          'password' => env('MICROSOFT_DYNAMICS_NAV_PASSWORD', ''),
          'exceptions' => true,
        ];
        $soapWsdl = env('MICROSOFT_DYNAMICS_NAV_URI', '').$url;
        $client = new SoapClient($soapWsdl, $options);
        $response->data = $client->ReadMultiple(['filter'=> [],'Start_Date' => "30-05-2018",'Cust_No'=>$customer_number,'Name'=>'Testing','Price_Comments'=>'','setSize'=>'1']);
        $response->status = true;

    }catch (Exception $e) {
        $response->data = $e->getMessage();
    }
    return $response;
}
4

0 回答 0