|
@@ -726,7 +726,12 @@ function __construct(){
|
|
|
|
|
|
if(in_array($shop['shopname'],['alipearlstore','finsahair','baddiebeautyshop','yolissahair']))
|
|
if(in_array($shop['shopname'],['alipearlstore','finsahair','baddiebeautyshop','yolissahair']))
|
|
{
|
|
{
|
|
- $url = 'https://'.$shop['shopname'].'.myshopify.com/admin/api/2022-10/orders/'.$shopifyid.'/fulfillment_orders.json';
|
|
|
|
|
|
+ if($shop['shopname'] == 'yolissahair'){
|
|
|
|
+ $shopname = 'xxu7p0-3q';
|
|
|
|
+ }else{
|
|
|
|
+ $shopname = $shop['shopname'];
|
|
|
|
+ }
|
|
|
|
+ $url = 'https://'.$shopname.'.myshopify.com/admin/api/2022-10/orders/'.$shopifyid.'/fulfillment_orders.json';
|
|
$headerA[] = "X-Shopify-Access-Token: ".$shop['token'];
|
|
$headerA[] = "X-Shopify-Access-Token: ".$shop['token'];
|
|
$ch = curl_init();
|
|
$ch = curl_init();
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
curl_setopt($ch, CURLOPT_URL, $url);
|
|
@@ -746,7 +751,7 @@ function __construct(){
|
|
'line_items_by_fulfillment_order'=>$od));
|
|
'line_items_by_fulfillment_order'=>$od));
|
|
$data = json_encode($data);
|
|
$data = json_encode($data);
|
|
$this->logic_ding->sendToDing("erp同步独立站的信息tijiao".$data);
|
|
$this->logic_ding->sendToDing("erp同步独立站的信息tijiao".$data);
|
|
- $url = 'https://'.$shop['shopname'].'.myshopify.com/admin/api/2022-10/fulfillments.json';
|
|
|
|
|
|
+ $url = 'https://'.$shopname.'.myshopify.com/admin/api/2022-10/fulfillments.json';
|
|
$header[] = "Content-Type: application/json";
|
|
$header[] = "Content-Type: application/json";
|
|
$header[] = "X-Shopify-Access-Token: ".$shop['token'];
|
|
$header[] = "X-Shopify-Access-Token: ".$shop['token'];
|
|
$ch = curl_init();
|
|
$ch = curl_init();
|