|
@@ -447,7 +447,7 @@ class TestService extends Service
|
|
|
$header = ['Content-Type:application/json'];
|
|
$header = ['Content-Type:application/json'];
|
|
|
list($status, $result) = $this->post_helper($url,json_encode($json), $header, 30);
|
|
list($status, $result) = $this->post_helper($url,json_encode($json), $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '获取用友登录信息失败,请重新操作'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
|
|
|
|
|
$token = $result['data']['Token'] ?? "";
|
|
$token = $result['data']['Token'] ?? "";
|
|
@@ -483,7 +483,7 @@ class TestService extends Service
|
|
|
list($status, $result) = $this->post_helper($url,$json, $header, 30);
|
|
list($status, $result) = $this->post_helper($url,$json, $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
|
|
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '拉取销售订单失败,请重新拉取'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
if(empty($result['data'])) return [true, []];
|
|
if(empty($result['data'])) return [true, []];
|
|
|
|
|
|
|
@@ -567,7 +567,7 @@ class TestService extends Service
|
|
|
];
|
|
];
|
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '拉取销售订单详情失败,请重新拉取'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
|
|
|
|
|
return [true, $result['data']['DataTable1']];
|
|
return [true, $result['data']['DataTable1']];
|
|
@@ -594,7 +594,7 @@ class TestService extends Service
|
|
|
|
|
|
|
|
list($status, $result) = $this->post_helper($url, $json_str, $header, 30);
|
|
list($status, $result) = $this->post_helper($url, $json_str, $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '生成领料申请单失败,请重新操作'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
|
|
|
|
|
return [true, $result['data']];
|
|
return [true, $result['data']];
|
|
@@ -620,7 +620,7 @@ class TestService extends Service
|
|
|
|
|
|
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '生成产成品入库单失败,请重新操作'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
|
|
|
|
|
return [true, $result['data']];
|
|
return [true, $result['data']];
|
|
@@ -650,7 +650,7 @@ class TestService extends Service
|
|
|
|
|
|
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
list($status, $result) = $this->post_helper($url, json_encode($json), $header, 30);
|
|
|
if(! $status) return [false, $result];
|
|
if(! $status) return [false, $result];
|
|
|
- if(! isset($result['code'])) return [false, '异常错误,请联系开发者'];
|
|
|
|
|
|
|
+ if(! isset($result['code'])) return [false, '生成发货单失败,请重新操作'];
|
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
if($result['code'] != 0) return [false, $result['msg']];
|
|
|
|
|
|
|
|
return [true, $result['data']];
|
|
return [true, $result['data']];
|