|
@@ -141,15 +141,15 @@ class ROrderController extends AdminController{
|
|
|
$technician_id = intval(Yii::app()->request->getParam('technician', 0));
|
|
|
$technician_name = Yii::app()->request->getParam('technician_name', '');
|
|
|
|
|
|
- // 技师信息检查
|
|
|
- // 根据ID直接查询技师信息(优先使用联想功能)
|
|
|
+ // 保洁师信息检查
|
|
|
+ // 根据ID直接查询保洁师信息(优先使用联想功能)
|
|
|
if ($technician_id != 0) {
|
|
|
$technician_obj = TechInfo::get($technician_id);
|
|
|
if ($technician_obj) {
|
|
|
$technicians_id = $technician_obj->_id;
|
|
|
$technician_name = $technician_obj->name;
|
|
|
} else {
|
|
|
- CommonFn::requestAjax(false, '技师不存在');
|
|
|
+ CommonFn::requestAjax(false, '保洁师不存在');
|
|
|
}
|
|
|
// ID为0时根据输入框信息查询
|
|
|
} else if ($technician_name != '') {
|
|
@@ -160,7 +160,7 @@ class ROrderController extends AdminController{
|
|
|
$technician_id = $technician_obj->_id;
|
|
|
$technician_name = $technician_obj->name;
|
|
|
} else {
|
|
|
- CommonFn::requestAjax(false, '技师不存在');
|
|
|
+ CommonFn::requestAjax(false, '保洁师不存在');
|
|
|
}
|
|
|
} else {
|
|
|
$technician_obj = null;
|
|
@@ -206,7 +206,7 @@ class ROrderController extends AdminController{
|
|
|
$address = $order_info['address']['poi']['name'].$order_info['address']['detail'];
|
|
|
CommonSMS::send('order_retrieve',array('month'=>$month,'day'=>$day,'address'=>$address,'mobile'=>$order_info['address']['mobile']));
|
|
|
|
|
|
- // 申请退款处理完成后通知技师
|
|
|
+ // 申请退款处理完成后通知保洁师
|
|
|
if ($technician_obj && $technician_obj->weixin_userid) {
|
|
|
$url_prefix = ENVIRONMENT == 'product' ? 'http://api.wozhua.mobi' : 'http://apitest.wozhua.mobi';
|
|
|
$wechat = O2oApp::getWechatActive();
|
|
@@ -217,7 +217,7 @@ class ROrderController extends AdminController{
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
|
- 'title' => '握爪提示-订单退款完成',
|
|
|
+ 'title' => '壹管家提示-订单退款完成',
|
|
|
'description' => $technician_obj->name.'你好!用户于'.date('m月d日H:i', $order->apply_refund_time).'申请退款的订单已处理完成。',
|
|
|
'url' => $url_prefix.'/index.php?r=o2o/myOrder/info&order='.$id.'&user='.$technician_id,
|
|
|
),
|
|
@@ -240,7 +240,7 @@ class ROrderController extends AdminController{
|
|
|
// 'news' => array(
|
|
|
// 'articles' => array(
|
|
|
// array(
|
|
|
- // 'title' => '握爪提示-追加订单退款完成',
|
|
|
+ // 'title' => '壹管家提示-追加订单退款完成',
|
|
|
// 'description' => $technician_obj->name.'你好!用户于'.date('m月d日H:i', $order->apply_refund_time).'申请退款的追加订单已处理完成,请点击下方条目查看详情。',
|
|
|
// ),
|
|
|
// ),
|
|
@@ -327,7 +327,7 @@ class ROrderController extends AdminController{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // 美容师订单统计处理
|
|
|
+ // 保洁师订单统计处理
|
|
|
if ($technician_obj) {
|
|
|
$tech_order_count = $technician_obj->order_count + 1;
|
|
|
$technician_obj->order_count = $tech_order_count;
|
|
@@ -376,8 +376,8 @@ class ROrderController extends AdminController{
|
|
|
$chubaoPush->setUserId($userId);
|
|
|
$chubaoPush->setOrderId($id);
|
|
|
$chubaoPush->setOrderService($chubaoConfig['service']);
|
|
|
- $chubaoPush->setOrderTitle('握爪宠物');
|
|
|
- $chubaoPush->setOrderShortInfo('握爪上门服务-'.$shortInfo);
|
|
|
+ $chubaoPush->setOrderTitle('壹管家宠物');
|
|
|
+ $chubaoPush->setOrderShortInfo('壹管家上门服务-'.$shortInfo);
|
|
|
$chubaoPush->setOrderCreateTime(date('YmdHis', $order->order_time));
|
|
|
$chubaoPush->setOrderFinishTime('');
|
|
|
$chubaoPush->setOrderUrl($chubaoConfig['orderUrl'].'/'.$id);
|
|
@@ -423,7 +423,7 @@ class ROrderController extends AdminController{
|
|
|
$order->remark = $remark;
|
|
|
|
|
|
//$order->station = new MongoId($station);
|
|
|
- // 是否通知技师
|
|
|
+ // 是否通知保洁师
|
|
|
$toTech = $order->technician != $technician_id ? true : false;
|
|
|
$order->technician = $technician_id;
|
|
|
$order->technician_name = $technician_name;
|
|
@@ -432,7 +432,7 @@ class ROrderController extends AdminController{
|
|
|
|
|
|
$success = $order->save(true,$arr_order);
|
|
|
|
|
|
- // 通知技师
|
|
|
+ // 通知保洁师
|
|
|
if (in_array($status, array(1,2,3,4,5)) && $toTech && $success) {
|
|
|
// if ($toTech) {
|
|
|
if ($technician_obj && $technician_obj->weixin_userid) {
|
|
@@ -445,7 +445,7 @@ class ROrderController extends AdminController{
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
|
- 'title' => '握爪提示-新订单',
|
|
|
+ 'title' => '壹管家提示-新订单',
|
|
|
'description' => $technician_obj->name.'你好!刚刚有一个新的订单被分配给你,请点击查看。',
|
|
|
'url' => $url_prefix.'/index.php?r=o2o/myOrder/info&order='.$id.'&user='.$technician_id,
|
|
|
),
|
|
@@ -647,7 +647,7 @@ class ROrderController extends AdminController{
|
|
|
}
|
|
|
|
|
|
//if($channel == 'wz_app' || $channel == 'wx_pub'){
|
|
|
- //CommonFn::requestAjax(false, '不能录入渠道为握爪微信||握爪APP的订单', array());
|
|
|
+ //CommonFn::requestAjax(false, '不能录入渠道为壹管家微信||壹管家APP的订单', array());
|
|
|
//exit;
|
|
|
//}
|
|
|
|
|
@@ -758,22 +758,22 @@ class ROrderController extends AdminController{
|
|
|
$key = $list->shift();
|
|
|
}
|
|
|
/**
|
|
|
- * 重新选择技师接口
|
|
|
+ * 重新选择保洁师接口
|
|
|
*/
|
|
|
public function actionResetTech() {
|
|
|
$id = Yii::app()->request->getParam('id', '');
|
|
|
$technician_id = intval(Yii::app()->request->getParam('reset_technician', 0));
|
|
|
$technician_name = Yii::app()->request->getParam('reset_technician_name', '');
|
|
|
|
|
|
- // 技师信息检查
|
|
|
- // 根据ID直接查询技师信息(优先使用联想功能)
|
|
|
+ // 保洁师信息检查
|
|
|
+ // 根据ID直接查询保洁师信息(优先使用联想功能)
|
|
|
if ($technician_id != 0) {
|
|
|
$technician_obj = TechInfo::get($technician_id);
|
|
|
if ($technician_obj) {
|
|
|
$technician_id = $technician_obj->_id;
|
|
|
$technician_name = $technician_obj->name;
|
|
|
} else {
|
|
|
- CommonFn::requestAjax(false, '技师不存在');
|
|
|
+ CommonFn::requestAjax(false, '保洁师不存在');
|
|
|
}
|
|
|
// ID为0时根据输入框信息查询
|
|
|
} else if ($technician_name != '') {
|
|
@@ -784,10 +784,10 @@ class ROrderController extends AdminController{
|
|
|
$technician_id = $technician_obj->_id;
|
|
|
$technician_name = $technician_obj->name;
|
|
|
} else {
|
|
|
- CommonFn::requestAjax(false, '技师不存在');
|
|
|
+ CommonFn::requestAjax(false, '保洁师不存在');
|
|
|
}
|
|
|
} else {
|
|
|
- CommonFn::requestAjax(false, '技师姓名不能为空');
|
|
|
+ CommonFn::requestAjax(false, '保洁师姓名不能为空');
|
|
|
}
|
|
|
|
|
|
$orderid = new MongoId($id);
|
|
@@ -799,7 +799,7 @@ class ROrderController extends AdminController{
|
|
|
$success = $order->save(true, array('technician', 'technician_name'));
|
|
|
|
|
|
if ($toTech && $success) {
|
|
|
- // 发送给被分配技师
|
|
|
+ // 发送给被分配保洁师
|
|
|
$wechat = O2oApp::getWechatActive();
|
|
|
$url_prefix = ENVIRONMENT == 'product' ? 'http://api.wozhua.mobi' : 'http://apitest.wozhua.mobi';
|
|
|
if (!empty($technician_obj->weixin_userid)) {
|
|
@@ -810,7 +810,7 @@ class ROrderController extends AdminController{
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
|
- 'title' => '握爪提示-新订单',
|
|
|
+ 'title' => '壹管家提示-新订单',
|
|
|
'description' => $technician_obj->name.'你好!刚刚有一个新的订单被分配给你,请点击查看。',
|
|
|
'url' => $url_prefix.'/index.php?r=o2o/myOrder/info&order='.$id.'&user='.$technician_id,
|
|
|
),
|
|
@@ -820,7 +820,7 @@ class ROrderController extends AdminController{
|
|
|
$wechat->sendMessage($wechat_data);
|
|
|
}
|
|
|
|
|
|
- // 发送给原技师
|
|
|
+ // 发送给原保洁师
|
|
|
$fromTechObj = TechInfo::get($fromTech);
|
|
|
if (!empty($fromTechObj) && !empty($fromTechObj->weixin_userid)) {
|
|
|
$wechat_data = array(
|
|
@@ -830,8 +830,8 @@ class ROrderController extends AdminController{
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
|
- 'title' => '握爪提示-订单已被重新分配',
|
|
|
- 'description' => $fromTechObj->name.'你好!预定时间在'.date('m月d日H:i', $order->booking_time).'的订单已被分配给其他美容师。',
|
|
|
+ 'title' => '壹管家提示-订单已被重新分配',
|
|
|
+ 'description' => $fromTechObj->name.'你好!预定时间在'.date('m月d日H:i', $order->booking_time).'的订单已被分配给其他保洁师。',
|
|
|
'url' => $url_prefix.'/index.php?r=o2o/myOrder/info&order='.$id.'&user='.$technician_id,
|
|
|
),
|
|
|
),
|