官方拼团对接易联云示例
1054
7

\application\booking\model\Order.php

搜索:

 /**
     * 成功组团群发通知
     * @param array $info 商品信息
     */

在他上面加上:

/**
	 * 支付成功后的打印
	 * @param string $orderdb 订单数组
	 * @param string $shop 商品数组
	 */
	public function get_dayin($orderdb = '',$shop='' ) {
		 	$content = "<audio>来自" . config( 'webdb.webname' ) . "的商品订单 已支付定金 $orderdb[fewmoney] 元请及时安排发货,9,0</audio>";
			$content .= "支付时间:" . date( "Y-m-d H:i" ) . "\n";
			$content .= "订单编号:$orderdb[order_sn]\n";
			$content .= str_repeat( '*',10 ) . "商品列表" . str_repeat( "*",10 );
			$content .= "\n";
			$content .= "<FH><FW>$shop[title] x1  $shop[price]</FW></FH>\n";
			$content .= "<FH>收货人:$orderdb[linkman]\n";
			$content .= "电话:$orderdb[telphone]\n";
			$content .= "地址:$orderdb[address] </FH>";
			$content .= "\n";
			$content .= str_repeat( '.',32 );
			$content .= "<FS><center>扫码进行发货</center></FS>";
			$content .= "<QR>" . get_url(murl(self::$model_key.'/kehu_order/show',['id'=>$orderdb['id']])) . "</QR>";
			$content .= "已付定金:¥$orderdb[fewmoney]\n";
		 	fun( "Printer@printer",mymd5($content),$orderdb['id'],$shop['uid'] );
	}

不带二维码的:

   /**
	 * 支付成功后的打印
	 * @param string $orderdb 订单数组
	 * @param string $shop 商品数组
	 */
	public function get_dayin($orderdb = '',$shop='' ) {
		 	$content = "<audio>来自" . config( 'webdb.webname' ) . "的商品订单 已支付定金 $orderdb[fewmoney] 元请及时安排发货,9,0</audio>";
			$content .= "支付时间:" . date( "Y-m-d H:i" ) . "\n";
			$content .= "订单编号:$orderdb[order_sn]\n";
			$content .= str_repeat( '*',10 ) . "商品列表" . str_repeat( "*",10 );
			$content .= "\n";
			$content .= "<FH><FW>$shop[title] x1  $shop[price]</FW></FH>\n";
			$content .= "<FH>收货人:$orderdb[linkman]\n";
			$content .= "电话:$orderdb[telphone]\n";
			$content .= "地址:$orderdb[address] </FH>";
			$content .= "\n";
			$content .= str_repeat( '.',32 );
			$content .= "已付定金:¥$orderdb[fewmoney]\n";
		 	fun( "Printer@printer",mymd5($content),$orderdb['id'],$shop['uid'] );
	}

继续搜索:

$fewnum = $shop['fewnum']+$info['shopnum'];

在他下面加上:

self::get_dayin($info,$shop);//支付成功商家打印

 不需要AI语音播报订单信息的把;

$content = "<audio>来自" . config( 'webdb.webname' ) . "的商品订单 已支付定金 $orderdb[fewmoney] 元请及时安排发货,9,0</audio>";

删除即可 



5
赏礼
赏钱
收藏
点击回复
      全部留言
  • 7
  • admin 超级管理员 消费:3.03元 2019-03-26 11:09 11:096楼

    好给力, 大家急用的话,可以自行加上去.我们是晚点再加.

    雪蓉网络&果城网仔 消费:2610.1元 2019-12-02 16:16
    加加加  进去把
    打印功能
0 赏钱 赏礼回复
  • 闫伟-1 普通粉丝 消费:1883.16元 2019-03-26 10:06 10:06
    华为
    6楼
    好文章
0 赏钱 赏礼回复
  • kk1212 白金粉丝 消费:1211.05元 2019-03-26 09:50 09:506楼

    不错啊!~拼团的也可以用上易联云。

0 赏钱 赏礼回复
  • 953228111 实战运营者 消费:6128.56元 2019-03-26 09:50 09:506楼

    好文章!顶 

0 赏钱 赏礼回复
  • 懒客驿站 普通粉丝 消费:3297.81元 2019-03-26 09:29 09:296楼

    好文章!顶 

0 赏钱 赏礼回复
  • swstt 白金粉丝 消费:120.79元 2019-03-26 09:05 09:056楼
    好文章!顶 
0 赏钱 赏礼回复
更多回复
恢复多功能编辑器
  • 3 1
  • Suifeng开发交流圈
        圈内贴子4087
    • 圈子成员430
    本圈子内的新贴

    推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648