mirror of
https://github.com/crmeb/CRMEB.git
synced 2025-12-14 12:32:50 +00:00
后台发货模版通知
This commit is contained in:
parent
475d844e3c
commit
f2d5a39879
@ -9,6 +9,7 @@ namespace behavior\routine;
|
|||||||
|
|
||||||
|
|
||||||
use app\routine\model\store\StoreOrder;
|
use app\routine\model\store\StoreOrder;
|
||||||
|
use app\routine\model\routine\RoutineTemplate;
|
||||||
use app\routine\model\user\User;
|
use app\routine\model\user\User;
|
||||||
use app\routine\model\user\WechatUser;
|
use app\routine\model\user\WechatUser;
|
||||||
use app\routine\model\user\UserAddress;
|
use app\routine\model\user\UserAddress;
|
||||||
@ -48,9 +49,9 @@ class StoreProductBehavior
|
|||||||
* @param $oid
|
* @param $oid
|
||||||
* $oid string store_order表中的id
|
* $oid string store_order表中的id
|
||||||
*/
|
*/
|
||||||
public static function storeProductOrderDeliveryAfter($data,$oid){
|
// public static function storeProductOrderDeliveryAfter($data,$oid){
|
||||||
StoreOrder::orderPostageAfter($data,$oid);
|
// StoreOrder::orderPostageAfter($data,$oid);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改发货状态 为发货
|
* 修改发货状态 为发货
|
||||||
@ -59,9 +60,10 @@ class StoreProductBehavior
|
|||||||
* @param $oid
|
* @param $oid
|
||||||
* $oid string store_order表中的id
|
* $oid string store_order表中的id
|
||||||
*/
|
*/
|
||||||
public static function storeProductOrderDeliveryGoodsAfter($data,$oid){
|
// public static function storeProductOrderDeliveryGoodsAfter($data,$oid){
|
||||||
StoreOrder::orderPostageAfter($data,$oid);
|
// StoreOrder::orderPostageAfter($data,$oid);
|
||||||
}
|
// RoutineTemplate::sendOrderGoods($oid,$data);
|
||||||
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改状态 为已收货
|
* 修改状态 为已收货
|
||||||
|
|||||||
145
extend/behavior/system/OrderBehavior.php
Normal file
145
extend/behavior/system/OrderBehavior.php
Normal file
@ -0,0 +1,145 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author: xaboy<365615158@qq.com>
|
||||||
|
* @day: 2017/12/18
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace behavior\system;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
use app\admin\model\user\User;
|
||||||
|
use app\admin\model\user\UserAddress;
|
||||||
|
use app\admin\model\user\UserBill;
|
||||||
|
use app\admin\model\wechat\WechatUser;
|
||||||
|
use basic\ModelBasic;
|
||||||
|
use app\admin\model\order\StoreOrder;
|
||||||
|
use service\SystemConfigService;
|
||||||
|
use service\WechatTemplateService;
|
||||||
|
|
||||||
|
class OrderBehavior
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改发货状态 为送货
|
||||||
|
* @param $data
|
||||||
|
* $data array 送货方式 送货人姓名 送货人电话
|
||||||
|
* @param $oid
|
||||||
|
* $oid string store_order表中的id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderDeliveryAfter($data,$oid){
|
||||||
|
StoreOrder::orderPostageAfter($oid,$data);
|
||||||
|
StoreOrder::sendOrderGoods($oid,$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改发货状态 为发货
|
||||||
|
* @param $data
|
||||||
|
* $data array 发货方式 送货人姓名 送货人电话
|
||||||
|
* @param $oid
|
||||||
|
* $oid string store_order表中的id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderDeliveryGoodsAfter($data,$oid){
|
||||||
|
StoreOrder::orderPostageAfter($oid,$data);
|
||||||
|
StoreOrder::sendOrderGoods($oid,$data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改状态为 已退款
|
||||||
|
* @param $data
|
||||||
|
* $data array type 1 直接退款 2 退款后返回原状态 refund_price 退款金额
|
||||||
|
* @param $oid
|
||||||
|
* $oid string store_order表中的id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderRefundYAfter($data,$oid){
|
||||||
|
StoreOrder::refundTemplate($data,$oid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改状态为 不退款
|
||||||
|
* @param $data
|
||||||
|
* $data string 退款原因
|
||||||
|
* @param $oid
|
||||||
|
* $oid string store_order表中的id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderRefundNAfter($data,$oid){
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 线下付款
|
||||||
|
* @param $id
|
||||||
|
* $id 订单id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderOffline($id){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改订单状态
|
||||||
|
* @param $data
|
||||||
|
* data total_price 商品总价 pay_price 实际支付
|
||||||
|
* @param $oid
|
||||||
|
* oid 订单id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderEditAfter($data,$oid){
|
||||||
|
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* 修改送货信息
|
||||||
|
* @param $data
|
||||||
|
* $data array 送货人姓名/快递公司 送货人电话/快递单号
|
||||||
|
* @param $oid
|
||||||
|
* $oid string store_order表中的id
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderDistributionAfter($data,$oid){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户申请退款
|
||||||
|
* @param $oid
|
||||||
|
* @param $uid
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderApplyRefundAfter($oid, $uid)
|
||||||
|
{
|
||||||
|
$order = StoreOrder::where('id',$oid)->find();
|
||||||
|
WechatTemplateService::sendAdminNoticeTemplate([
|
||||||
|
'first'=>"亲,您有一个订单申请退款 \n订单号:{$order['order_id']}",
|
||||||
|
'keyword1'=>'申请退款',
|
||||||
|
'keyword2'=>'待处理',
|
||||||
|
'keyword3'=>date('Y/m/d H:i',time()),
|
||||||
|
'remark'=>'请及时处理'
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 评价产品
|
||||||
|
* @param $replyInfo
|
||||||
|
* @param $cartInfo
|
||||||
|
*/
|
||||||
|
public static function storeProductOrderReply($replyInfo, $cartInfo)
|
||||||
|
{
|
||||||
|
//StoreOrder::checkOrderOver($cartInfo['oid']);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 退积分
|
||||||
|
* @param $product
|
||||||
|
* $product 商品信息
|
||||||
|
* @param $back_integral
|
||||||
|
* $back_integral 退多少积分
|
||||||
|
*/
|
||||||
|
public static function storeOrderIntegralBack($product,$back_integral){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@ -59,9 +59,9 @@ class StoreProductBehavior
|
|||||||
* @param $oid
|
* @param $oid
|
||||||
* $oid string store_order表中的id
|
* $oid string store_order表中的id
|
||||||
*/
|
*/
|
||||||
public static function storeProductOrderDeliveryAfter($data,$oid){
|
// public static function storeProductOrderDeliveryAfter($data,$oid){
|
||||||
StoreOrder::orderPostageAfter($data,$oid);
|
// StoreOrder::orderPostageAfter($data,$oid);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改发货状态 为发货
|
* 修改发货状态 为发货
|
||||||
@ -70,9 +70,9 @@ class StoreProductBehavior
|
|||||||
* @param $oid
|
* @param $oid
|
||||||
* $oid string store_order表中的id
|
* $oid string store_order表中的id
|
||||||
*/
|
*/
|
||||||
public static function storeProductOrderDeliveryGoodsAfter($data,$oid){
|
// public static function storeProductOrderDeliveryGoodsAfter($data,$oid){
|
||||||
StoreOrder::orderPostageAfter($data,$oid);
|
// StoreOrder::orderPostageAfter($data,$oid);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 修改状态 为已收货
|
* 修改状态 为已收货
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user