|
|
@@ -1622,9 +1622,33 @@ function __construct(){
|
|
|
$post['fpdata'] = $matching['product'];
|
|
|
$post['whlabel'] = $matching['whlabel'];
|
|
|
$post['slpx'] = $matching['wcslpx'];
|
|
|
+ $post['wzsgd'] = $this->checkWzsgd($product_ids_tmp,$shop['id']);
|
|
|
return $post;
|
|
|
}
|
|
|
|
|
|
+ public function checkWzsgd($product_ids,$shopid){
|
|
|
+ $map = [
|
|
|
+ 6 => ['50958', '51003', '51015'],
|
|
|
+ 3 => ['70127'],
|
|
|
+ 2 => ['56034', '56014', '55985', '55916'],
|
|
|
+ 4 => ['48461', '48603', '48629'],
|
|
|
+ 5 => ['8898452291772', '8898451210428'],
|
|
|
+ ];
|
|
|
+ $product_ids = explode(",",trim($product_ids,","));
|
|
|
+ if(isset($map[$shopid])){
|
|
|
+ $tmp_bj_flag = 0;
|
|
|
+ foreach($product_ids as $item){
|
|
|
+ if(in_array($item,$map[$shopid])){
|
|
|
+ $tmp_bj_flag = 1;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return $tmp_bj_flag;
|
|
|
+ }else{
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
public function tranExtraPrice($issku,$org_qty,$org_price,$org_row_total,$org_tax_amount,$org_discount_amount,$product_ids_tmp){
|
|
|
$sku = explode(',',$issku);
|
|
|
$tmp_qty = explode(';',$org_qty);
|