GoodsRepository.php 405 B

1234567891011121314151617181920
  1. <?php
  2. namespace crmeb\repositories;
  3. use app\models\user\UserAddress;
  4. class GoodsRepository
  5. {
  6. /**
  7. * 订单创建成功后
  8. * @param $order
  9. * @param $group
  10. */
  11. public static function storeProductOrderCreateEbApi($order,$group)
  12. {
  13. if(!UserAddress::be(['is_default'=>1,'uid'=>$order['uid']])) UserAddress::setDefaultAddress($group['addressId'],$order['uid']);
  14. }
  15. }