<?php
namespace Our;
class ArrayConst
{
    const meg=array(
        ApiConst::systemMessageType=>"欢迎使用【身边店】。您身边的品牌，服务...",
    );


    //短信验证码类型
    const messageType = array(
        ApiConst::messageTypeRegister => '注册验证码',
        ApiConst::messageTypeLogin => '登录验证码',
        ApiConst::messageTypeSeller => '我是销售员登录验证码',
        ApiConst::messageTypeValidOldMobile => '验证旧手机',
        ApiConst::messageTypeValidNewMobile => '验证新手机',
        ApiConst::messageTypeFindPassword => '找回密码'
    );

    //消息中心
    const messageName=array(
        ApiConst::systemMessageType=>"系统消息",
        ApiConst::orderMessageType=>"订单消息",
        ApiConst::deliveryMessageType=>"快递消息",
        ApiConst::storeMessageType=>"店铺消息",
        ApiConst::memberMessageType=>"用户消息",
    );
    //配送方式
    const refundShippingType=array(
        ApiConst::bySelf=>array('id'=>ApiConst::bySelf,'name'=>"退货到店"),
        ApiConst::bySeller=>array('id'=>ApiConst::bySeller,'name'=>"商家取货"),
//        ApiConst::express=>array('id'=>ApiConst::express,'name'=>"快递"),
    );
    const payTypeOnlines=array(
        ApiConst::wxAppPayType,
        ApiConst::aliPayType,
        ApiConst::qqPayType,
        ApiConst::wxLitePayType
    );
    const paymentTypes=array(
        ApiConst::offlinePay=>'线下付款',
        ApiConst::wxpay=>'微信付款',
        ApiConst::afterSendPay=>'货到付款',
        ApiConst::alipay=>'支付宝付款',
        ApiConst::tenpay=>'qq支付',
        ApiConst::wxProgram=>'微信付款',
    );
    const orderPayTypeOnlines=array(
        ApiConst::wxpay,
        ApiConst::alipay,
        ApiConst::tenpay,
        ApiConst::wxProgram
    );
//退货方式
    const refundTypes=array(
        ApiConst::refundTypeMoney=>array('id'=>ApiConst::refundTypeMoney,'name'=>"退款",'desc'=>'未收到货(包含未签收),或卖家协商同意前提下'),
        ApiConst::refundTypeGoods=>array('id'=>ApiConst::refundTypeGoods,'name'=>"退货退款",'desc'=>'未收到货(包含未签收),或卖家协商同意前提下'),
    );
    //允许上传的图片类型
    const imageExtensions = array('pjpeg','jpeg','jpg','gif','bmp','png');

    //图片尺寸
    const goodsImageExt = array(60=>60,240=>240,360=>360,1280=>1280);

    //用户第三方来源类型
    const userType = array(
        ApiConst::userFromWeibo=>'微博',
        ApiConst::userFromQQ => 'QQ',
        ApiConst::wechatUserType => '小程序',
        ApiConst::userFromWx => '微信'
    );

    //系统默认地址
    const defaultAddress = array(
        NameConst::cityCode => '0591',
        NameConst::lat => '26.043194',
        NameConst::lng => '119.331196',
        NameConst::address => '福远文创园',
        'default'=>\Our\ApiConst::one
    );

    //小程序账号
    const wechatInfo = array(
        'appid' => 'wxab22edc34913554b',
        'secret' => '63df6bf0bb37862893bde46e7db218d0',
        'grant_type' => 'authorization_code',
    );

    //卖家处理状态
    const sellerState=array(
        1=>'处理中',
        2=>'同意',
        3=>'不同意',
    );

    //退货类型
    const returnType=array(
        1=>'不用退货',
        2=>'需要退货',
    );
    //退款类型
    const refundType=array(
        1=>'退款',
        2=>'退货退款',
    );
    //平台介入操作类型
    const platformState=array(
        '无','同意','不同意'
    );
    //退款申请日志消息
    const logMsgType=array(
        ApiConst::refundApplyOnlyMoney=>'买家申请退款',
        ApiConst::refundApply=>'买家申请退货退款',
        ApiConst::refundApplyPlatform=>'买家申请平台介入',
        ApiConst::sellerUpdateOrderAmount=>'卖家修改订单金额',

    );

    const couponState = array(
        \Our\ApiConst::couponUnused => '未使用',
        \Our\ApiConst::couponUsed => '已使用',
        \Our\ApiConst::couponOverdue => '已过期'
    );
    //自动关闭订单消息模板
    const orderCloseTemplate=array(
        'type'=>14,
        'title'=>'订单关闭通知',
        'content'=>'您的订单{0}超过10分钟没人接单，自动关闭',
        'thumb'=>'',
        'href'=>'',
        'price'=>0
    );

    const orderCloseAndCancel=array(
        0,
        -1
    );
    //确认收货按钮0为未操作过，1为操作过，
    const reachRemindButtons=array(
       array(
           'type'=>ApiConst::messageButtonTypeConfirmButton,
           'name'=>'确认收货',
           'status'=>ApiConst::messageButoonNotClick,
           'showType'=>ApiConst::messageButtonShowTypeOnLight,
           'buttonId'=>ApiConst::messageButtonIdOne
        ),
    );
    //确认收货按钮0为未操作过，1为操作过，
    const confirmRecieveButtons=array(
        array(
            'type'=>ApiConst::messageButtonTypeReciverButton,
            'name'=>'确认接单',
            'status'=>ApiConst::messageButoonNotClick,
            'showType'=>ApiConst::messageButtonShowTypeOnLight,
            'buttonId'=>ApiConst::messageButtonIdOne
        ),
    );
    const defaultDeliveryMan=array(
        'id'=>0,
        'trueName'=>'',
        'mobile'=>'',
    );
    const messageOrderButtonsType=array(
        0,1,2
    );

    const ops = array(
        \Our\ApiConst::minus => '-',
        \Our\ApiConst::plus  => '+',
        \Our\ApiConst::set => '='
    );
}