zhangguidong %!s(int64=2) %!d(string=hai) anos
pai
achega
04de1dacc9
Modificáronse 1 ficheiros con 16 adicións e 1 borrados
  1. 16 1
      application/common/model/Orders.php

+ 16 - 1
application/common/model/Orders.php

@@ -271,12 +271,28 @@ class Orders extends Model
         ];
         $newData = array_filter($newData);
         $logistics=$this->logistics()->save($newData);
+        if(!$logistics){
+            throw_user('出现错误');
+        }
 
         $names=[];
         foreach ($this->info as $info){
             $names[]=sprintf('%s:%s',$info->goods_name,$info->sku_name);
         }
 
+//        print_r($logistics->from_username);
+//        print_r($logistics->from_mobile);
+//        print_r($logistics->fullArea());
+//        print_r($this->address['name']);
+//        print_r($this->address['mobile']);
+//        print_r($this->address['address']);
+//        print_r($this->info()->sum('num'));
+//        print_r($this->order_no);
+//        print_r($names);
+//        print_r(implode('&',$names));
+//        print_r($expType);
+//        exit;
+
         list($res,$data)=logistics()
             ->setLogistics($com)
             ->setUserName($logistics->from_username)
@@ -292,7 +308,6 @@ class Orders extends Model
             ->setComName($com['code_kd100'])
             ->setPartnerId($com['partner_id'])
             ->labelOrder();
-
         if(!$res){
             throw_user($data);
         }