Explorar o código

修改tiktok的部分货从tiktok平台仓库发出

lvhao hai 2 días
pai
achega
3c8c6e2f64
Modificáronse 2 ficheiros con 5 adicións e 4 borrados
  1. 2 1
      core/CoreApp/controllers/Apitt.php
  2. 3 3
      core/CoreApp/models/Model_apitt.php

+ 2 - 1
core/CoreApp/controllers/Apitt.php

@@ -702,7 +702,8 @@ $j = json_decode($j, true);
 								}else if(in_array($post['shop'],[35,38,44])){
 									$post['express'] = 85;
 								}
-								if(in_array($post['shop'],[42,47])){
+								//42有部分货发许昌仓 
+								if(in_array($post['shop'],[42,47]) && ($post['cf'] == 0)){
 									$post['express'] = 80;
 								}
 

+ 3 - 3
core/CoreApp/models/Model_apitt.php

@@ -25,7 +25,7 @@ function __construct(){
 		$url .= $link.'&sign='.$sign;
 		$headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
 		$res = $this->su_curl($post,$url,$headers);
-		if($shop['shopname'] == 'Supernova Store'){
+		if($shop['shopname'] == 'WestKiss Hair UK'){
 			$this->logic_ding->sendToDing($shop['shopname']."测试获取TT订单".$res);
 		}
 		$res = json_decode($res,true);
@@ -362,8 +362,8 @@ function __construct(){
 			$post['cf'] = 1;
 		}
 		//$post['cf'] = ($data['shipping_type']=='SELLER')?0:1;//是否仓发TIKTOK平台仓发 SELLER商家发,ERP中1平台仓发,0商家发
-		//但是还有 HOME_DELIVERY  如果店铺是42 英国uk店 直接分到许昌仓
-		if(in_array($post['shop'],[35,38,39,40,41,42,44,46,47,49,58])){
+		//但是还有 HOME_DELIVERY  如果店铺是 直接分到许昌仓
+		if(in_array($post['shop'],[35,38,39,40,41,44,46,47,49,58])){
 			$post['cf'] = 0;
 		}
 		$post['budget'] = 0;//预估到账金额