|
@@ -255,7 +255,7 @@ class ROrderController extends AdminController{
|
|
|
$wechat_data = array(
|
|
|
'touser' => $technician_obj->weixin_userid,
|
|
|
'msgtype' => 'news',
|
|
|
- 'agentid' => '24',
|
|
|
+ 'agentid' => '1',
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
@@ -277,7 +277,6 @@ class ROrderController extends AdminController{
|
|
|
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//取消订单
|
|
|
if($order->status!=-1 && $status == -1){
|
|
|
// 已完成订单不能取消
|
|
@@ -358,17 +357,16 @@ class ROrderController extends AdminController{
|
|
|
$wechat = O2oApp::getWechatActive();
|
|
|
$wechat_data = array(
|
|
|
'touser' => $technician_obj->weixin_userid,
|
|
|
- 'msgtype' => 'text',
|
|
|
- 'agentid' => '24',
|
|
|
- 'text' => array(
|
|
|
- 'content' => '你好!刚刚有一个新的订单被分配给你,请注意查看。'
|
|
|
- /*'articles' => array(
|
|
|
+ 'msgtype' => 'news',
|
|
|
+ 'agentid' => '1',
|
|
|
+ 'news' => array(
|
|
|
+ 'articles' => array(
|
|
|
array(
|
|
|
'title' => '壹管家提示-新订单',
|
|
|
'description' => $technician_obj->name . '你好!刚刚有一个新的订单被分配给你,请点击查看。',
|
|
|
'url' => $url_prefix . '/index.php?r=o2o/myOrder/info&order=' . $id . '&user=' . $technician_id,
|
|
|
),
|
|
|
- ),*/
|
|
|
+ ),
|
|
|
),
|
|
|
);
|
|
|
|
|
@@ -699,7 +697,7 @@ class ROrderController extends AdminController{
|
|
|
$wechat_data = array(
|
|
|
'touser' => $technician_obj->weixin_userid,
|
|
|
'msgtype' => 'news',
|
|
|
- 'agentid' => '24',
|
|
|
+ 'agentid' => '1',
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|
|
@@ -721,7 +719,7 @@ class ROrderController extends AdminController{
|
|
|
$wechat_data = array(
|
|
|
'touser' => $fromTechObj->weixin_userid,
|
|
|
'msgtype' => 'news',
|
|
|
- 'agentid' => '24',
|
|
|
+ 'agentid' => '1',
|
|
|
'news' => array(
|
|
|
'articles' => array(
|
|
|
array(
|