Manage.php 963 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace Mshop\Lib;
  3. use Dever;
  4. class Manage
  5. {
  6. # 审核拆单
  7. public function audit_api()
  8. {
  9. return Dever::load('mshop/lib/buy.audit_commit');
  10. }
  11. # 发货
  12. public function send_api()
  13. {
  14. return Dever::load('mshop/lib/buy.send_commit');
  15. }
  16. # 门店部分退款
  17. public function sell_order_tui_one_commit_api()
  18. {
  19. $shop_id = Dever::input('shop_id');
  20. $order_id = Dever::input('order_id');
  21. $order_goods_id = Dever::input('order_goods_id');
  22. $num = 0;
  23. $buy_status = Dever::input('status');
  24. $desc = Dever::input('desc');
  25. if ($buy_status == 3) {
  26. $status = 1;
  27. } else {
  28. $status = 2;
  29. }
  30. if (!$shop_id || !$order_id) {
  31. return;
  32. }
  33. return Dever::load('shop/lib/refund')->set('sell')->apply(2, $shop_id, $order_id, $order_goods_id, $status, $num, $desc, '', 2, $buy_status);
  34. }
  35. }