DispatchService.php 512 B

12345678910111213141516171819
  1. <?php
  2. namespace app\backend\modules\goods\services;
  3. /**
  4. * Created by PhpStorm.
  5. * Author: 芸众商城 www.yunzshop.com
  6. * Date: 2017/5/2
  7. * Time: 上午17:26
  8. */
  9. class DispatchService
  10. {
  11. public static function getDispatch($dispatchData)
  12. {
  13. $dispatchData['weight_data'] = serialize($dispatchData['weight']);
  14. $dispatchData['piece_data'] = serialize($dispatchData['piece']);
  15. unset($dispatchData['weight']);
  16. unset($dispatchData['piece']);
  17. return $dispatchData;
  18. }
  19. }