dict.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598
  1. <?php
  2. namespace common\components;
  3. //字典
  4. class dict
  5. {
  6. public static $data = [
  7. //允许看商家列表的人员
  8. 'couldLookAllShop' => [
  9. 4,//石头
  10. 51,//琦海
  11. 7335,//骆总
  12. 12747,//曾总
  13. 2093,//候哥
  14. 34806,//洪总
  15. 35567,//陈总
  16. 36517,
  17. 37520,//蓝占远
  18. ],
  19. 'getPayType' => 1,
  20. 'appVersion' => 2,
  21. 'transType' => [
  22. //德邦
  23. 'db' => 0,
  24. //顺丰
  25. 'sh' => 1,
  26. //冷链
  27. 'll' => 2,
  28. //航空
  29. 'hk' => 3,
  30. //同城配送
  31. 'local' => 4,
  32. //到店自取
  33. 'zt' => 5,
  34. ],
  35. //昆明基地包装费计算
  36. 'kmPackCost' => [
  37. ['num' => 10, 'amount' => 15],
  38. ['num' => 25, 'amount' => 25],
  39. ['num' => 30, 'amount' => 30],
  40. ['num' => 40, 'amount' => 35],
  41. ['num' => 50, 'amount' => 40],
  42. ['num' => 60, 'amount' => 45],
  43. ['num' => 80, 'amount' => 65],
  44. ['num' => 100, 'amount' => 80],
  45. ],
  46. //昆明基地包装费计算2
  47. 'kmPackCost2' => [
  48. ['num' => 10, 'amount' => 0],
  49. ['num' => 25, 'amount' => 0],
  50. ['num' => 30, 'amount' => 0],
  51. ['num' => 40, 'amount' => 0],
  52. ['num' => 50, 'amount' => 0],
  53. ['num' => 60, 'amount' => 0],
  54. ['num' => 80, 'amount' => 0],
  55. ['num' => 100, 'amount' => 0],
  56. ],
  57. //昆明基地包装费计算3
  58. 'kmPackCost3' => [
  59. ['num' => 20, 'amount' => 30],
  60. ['num' => 50, 'amount' => 60],
  61. ['num' => 100, 'amount' => 80],
  62. ],
  63. //测试环境
  64. // 'kmPackCost' => [
  65. // ['num' => 10, 'amount' => 0.15],
  66. // ['num' => 25, 'amount' => 0.25],
  67. // ['num' => 30, 'amount' => 0.3],
  68. // ['num' => 40, 'amount' => 0.35],
  69. // ['num' => 50, 'amount' => 0.40],
  70. // ['num' => 60, 'amount' => 0.45],
  71. // ['num' => 80, 'amount' => 0.65],
  72. // ['num' => 100, 'amount' => 0.8],
  73. // ],
  74. //重量计算标准,包括德邦、顺丰、冷链和航空。其中冷链物流,40公斤以下小件,60公斤以下中件,100公斤以下大件
  75. 'transCost' => [
  76. ['sign' => 0, 'perKiloCost' => 5],
  77. ['sign' => 1, 'perKiloCost' => 9],
  78. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 50], ['num' => 30, 'amount' => 80], ['num' => 50, 'amount' => 120], ['num' => 70, 'amount' => 180], ['num' => 100, 'amount' => 200]]],
  79. ['sign' => 3, 'perKiloCost' => 4],
  80. ['sign' => 4, 'perKiloCost' => 0],
  81. ['sign' => 5, 'perKiloCost' => 0],
  82. ],
  83. //测试环境,德邦、顺丰、冷链和航空
  84. // 'transCost' => [
  85. // ['sign' => 0, 'perKiloCost' => 0.05],
  86. // ['sign' => 1, 'perKiloCost' => 0.09],
  87. // ['sign' => 2, 'option' => [['num' => 40, 'amount' => 0.05], ['num' => 60, 'amount' => 0.1], ['num' => 100, 'amount' => 0.2]]],
  88. // ['sign' => 3, 'perKiloCost' => 0.04],
  89. // ],
  90. //默认开启订阅消息
  91. 'subscribeMessage' => 1,
  92. 'hdMiniMessage' => [
  93. //优惠券到账通知
  94. 'giveCoupon' => ['msgId' => '_MqYqXLgNPWvHg-tUuh3vJMTb2aAOvvIFf0Vm2pwjiI'],
  95. //购买成功通知
  96. 'cgSuccess' => ['msgId' => 'UAIsxaFbkyi34CRYqncQ6pNsjNgn6Gcqte_AoHmPbxA'],
  97. //账单生成提醒
  98. 'remindHdClear' => ['msgId' => 'Xyjo2M0uMbrTLg76wuMf0b7i_tqjcqosKj-hACDHPds'],
  99. //发货通知
  100. 'fhNotice' => ['msgId' => 'WyktXtxES58RwUbkXhD1N9lNNmxM3tNKiOuDf_YG_DQ'],
  101. //售后通知
  102. 'afterSale' => ['msgId' => 'QbQLZy-Mxv1wrqKHhaH8lM6BuXDZv4IoOZPHpJQmMTY'],
  103. ],
  104. 'hdMiniMessageDev' => [
  105. //优惠券到账通知
  106. 'giveCoupon' => ['msgId' => 'r7BIUWRqpVmqqOqdtq5BhjffkLyOaZxi0fvme_l-V8A'],
  107. //购买成功通知
  108. 'cgSuccess' => ['msgId' => 'ZfCmPfD96W_H0-pWDyQHCJQC5ht41NXtTS8nP28xKQQ'],
  109. //账单生成提醒
  110. 'remindHdClear' => ['msgId' => '1mj55S920TbW_iF_jpHQrdVShs7LQgPBzy_GeU3kbhk'],
  111. //发货通知
  112. 'fhNotice' => ['msgId' => 'aqrvfRVus0PbxaSeqhuPd6W4T7awoQX9nIT2y2jLPB0'],
  113. //售后通知
  114. 'afterSale' => ['msgId' => 'eLRc2blfKBMsuGHkFnQ_rWDBZwMmJErr7L-BDwAHBLc'],
  115. ],
  116. 'mtConfig' => [
  117. 'app_id' => '119094',
  118. 'app_secret' => 'b7e86d768391180f805621b40ec31e33',
  119. 'request_url' => '', // 默认 `https://waimaiopen.meituan.com/api/v1/`
  120. ],
  121. //小程序原始ID
  122. 'miniOriginalId' => [
  123. 'dev' => ['mall' => 'gh_071ff9f39df6', 'hd' => 'gh_177befc881cb', 'ghs' => 'gh_2a429284375a', 'jd' => '',],
  124. 'product' => ['mall' => 'gh_38f1a1af64ca', 'hd' => 'gh_73b8b357d19a', 'ghs' => 'gh_2e886744af66', 'jd' => '',],
  125. 'current' => ['mall' => '', 'hd' => '', 'ghs' => '', 'jd' => '',],
  126. ],
  127. //是否需要打印
  128. 'needPrint' => [
  129. 'need' => 1,
  130. 'noNeed' => 2,
  131. ],
  132. //结账方式
  133. 'hasPay' => [
  134. //待付款,扫码付
  135. 'unPay' => 0,
  136. //线下
  137. 'payed' => 1,
  138. //欠款
  139. 'debt' => 2,
  140. //现金
  141. 'cash' => 3,
  142. ],
  143. 'hasPayMap' => [
  144. ],
  145. //产品属性
  146. 'property' => [
  147. //商品
  148. 'goods' => 0,
  149. //花材
  150. 'item' => 1,
  151. ],
  152. //单位类型 0大单位 1小单位
  153. 'unitType' => [
  154. 'big' => 0,
  155. 'small' => 1,
  156. ],
  157. //配送方式,0免费送货 1到店自取 2跑腿 3发物流 4快递
  158. 'sendType' => [
  159. 'carGet' => 0,
  160. 'shopGet' => 1,
  161. 'thirdSend' => 2,
  162. 'wl' => 3,
  163. 'express' => 4,
  164. ],
  165. //批发店囤货时显示给零售库存的最高值
  166. 'showMaxStock' => 260,
  167. //余额满miniCashAmount才能提现
  168. 'miniCashAmount' => 1,
  169. //本条流水的余额是否可以提现
  170. 'yeTx' => [
  171. //不可以
  172. 'canNot' => 1,
  173. //可以
  174. 'can' => 2,
  175. ],
  176. //平台资产
  177. 'ptAsset' => [
  178. 'hdBalance' => ['id' => 1, 'name' => '零售余额'],
  179. 'ghsBalance' => ['id' => 2, 'name' => '供货商余额'],
  180. 'hdTxBalance' => ['id' => 3, 'name' => '零售可提现'],
  181. 'ghsTxBalance' => ['id' => 4, 'name' => '供货商可提现'],
  182. ],
  183. //是否在线支付
  184. 'onlinePay' => ['not' => 1, 'yes' => 2],
  185. //商家开单了,客户多少秒后未付款,自动标记欠款。由于未付款单自动标记为欠款,商家开的订单360天内都不过期。此功能弃用
  186. 'local_gys_kd_auto_set_debt_time' => 600,
  187. //客户采购订单有效期是多少秒,有效期内可以支付,到期自动取消。
  188. 'order_pay_has_time' => 600,
  189. //客户采购线上付款的,在订单到期前多少秒还能支付
  190. 'order_online_pay_has_ahead_time' => 100,
  191. 'expressList' => [
  192. [
  193. "id" => 1,
  194. "deliveryId" => "dada",
  195. "deliveryName" => "达达"
  196. ]
  197. ],
  198. //默认的日期搜索选项
  199. 'dateDefaultOption' => [
  200. ['name' => '昨天', 'value' => 'yesterday'],
  201. ['name' => '今天', 'value' => 'today',],
  202. ['name' => '本月', 'value' => 'thisMonth',],
  203. ['name' => '上月', 'value' => 'lastMonth',],
  204. ['name' => '今年', 'value' => 'thisYear',],
  205. ],
  206. //所属平台类型
  207. 'ptStyle' => [
  208. 'hd' => 1,//零售花店端
  209. 'ghs' => 2,//二级批发端
  210. 'mall' => 3,//商城端
  211. 'kmGhs' => 4,//基地端
  212. ],
  213. //订单发起方,与ptStyle一致
  214. 'cgStyle' => [
  215. 'hd' => 1,//零售花店端
  216. 'ghs' => 2,//二级批发端
  217. 'mall' => 3,//商城端
  218. 'kmGhs' => 4,//基地端
  219. ],
  220. //结帐方式
  221. 'clearStyle' => [
  222. 'hd2Gys' => 1,//零售主动供货商结帐
  223. 'gys2Hd' => 2,//供货商要求花店结帐
  224. 'gys2KmGys' => 3,//供货商向昆明供货商结帐
  225. 'kmGys2gys' => 4,//昆明供货商向供货商结账
  226. ],
  227. 'merchantStatus' => ['checking' => 0, 'pass' => 1, 'noPass' => 2, 'freeze' => 3, 'unfreeze' => 4, 'shut' => 5],
  228. //涨价方式
  229. 'riseType' => ['noRise' => 0, 'percent' => 1, 'amount' => 2,],
  230. 'riseTypeName' => [0 => '不涨价', 1 => '按百分比', 2 => '按金额'],
  231. //支付方式
  232. 'payWay' => ['wxPay' => 0, 'alipay' => 1, 'balancePay' => 2, 'debtPay' => 3, 'cash' => 4, 'bankCard' => 5, 'unknown' => 9, 'unPay' => 10,],
  233. 'payWayName' => [0 => '微信', 1 => '支付宝', 2 => '余额', 3 => '欠款', 4 => '现金', 5 => '银行卡', 9 => '其它', 10 => '待付款'],
  234. 'payWayFullName' => [0 => '微信支付', 1 => '支付宝', 2 => '余额支付', 3 => '欠款支付', 4 => '现金', 5 => '银行卡', 9 => '其它', 10 => '待付款'],
  235. //后台支付方式选项
  236. 'htPayWayOption' => [
  237. ['name' => '微信', 'id' => 0],
  238. ['name' => '支付宝', 'id' => 1],
  239. ['name' => '现金', 'id' => 4],
  240. ['name' => '银行卡', 'id' => 5],
  241. ],
  242. //优惠类型
  243. 'discountType' => [
  244. //没有优惠
  245. 'noDiscount' => 1,
  246. //使用平台优惠券
  247. 'usePtCoupon' => 2,
  248. //商家打折
  249. 'discount' => 3,
  250. //红包
  251. 'hb' => 4,
  252. ],
  253. 'payStatus' => ['cancel' => -1, 'waitForPay' => 0, 'waitForSend' => 1],
  254. 'sendStatusName' => [0 => '待发货', 1 => '送货中', 2 => '已送达'],
  255. 'sendStatus' => ['waitForSend' => 0, 'sending' => 1, 'reached' => 2],
  256. 'replyType' => ['redirectUrl' => 0, 'text' => 1, 'news' => 2, 'multiNews' => 3],
  257. 'goodsStatusName' => [0 => '正常', 1 => '下架', 2 => '删除'],
  258. 'goodsStatus' => ['online' => 0, 'soldOut' => 1, 'del' => 2],
  259. 'goodsDelStatusName' => [0 => '正常,未删除', 1 => '删除'],
  260. 'goodsDelStatus' => ['normal' => 0, 'del' => 1],
  261. 'reachPeriodName' => [0 => '上午', 1 => '下午', 2 => '晚上'],
  262. 'reachPeriod' => ['am' => 0, 'pm' => 1, 'night' => 2],
  263. //运费
  264. 'freight' => [
  265. 'firstDistance' => 5000,//5公里内
  266. 'firstPrice' => 0,//16元运费
  267. 'nextDistance' => 1000,//每增加1公里
  268. 'nextPrice' => 2,//增加2元
  269. ],
  270. "io" => ['payout' => 0, 'income' => 1, 'other' => 2],
  271. "ioName" => [0 => '支出', 1 => '收入', 2 => '其它'],
  272. //流水类型,充值支付回调时的订单类型
  273. "capitalType" => [
  274. 'xhOrder' => ['id' => 0, 'name' => 'xhOrder'],
  275. 'xhActiveOrder' => ['id' => 2, 'name' => 'xhActiveOrder'],
  276. //充值
  277. 'xhRecharge' => ['id' => 4, 'name' => 'xhRecharge'],
  278. //支付宝关联微信
  279. 'xhUserUnite' => ['id' => 5, 'name' => 'xhUserUnite'],
  280. 'xhDrawCash' => ['id' => 6, 'name' => 'xhDrawCash'],
  281. 'xhApplyOrder' => ['id' => 7, 'name' => 'xhApplyOrder'],
  282. 'xhMergeUser' => ['id' => 8, 'name' => 'xhMergeUser'],
  283. 'xhRenew' => ['id' => 9, 'name' => 'xhRenew'],
  284. //供货商订单
  285. 'xhGhsOrder' => ['id' => 10, 'name' => 'xhGhsOrder'],
  286. //零售采购
  287. 'xhPurchase' => ['id' => 11, 'name' => 'xhPurchase'],
  288. //培训报名
  289. 'pxApply' => ['id' => 12, 'name' => 'pxApply'],
  290. //花店采购结算
  291. 'hdPurchaseClear' => ['id' => 20, 'name' => 'hdPurchaseClear'],
  292. //供货商采购
  293. 'ghsPurchase' => ['id' => 25, 'name' => 'ghsPurchase'],
  294. //供货商出库
  295. 'ghsCheckOut' => ['id' => 26, 'name' => 'ghsCheckOut'],
  296. //供货商入库
  297. 'ghsCheckIn' => ['id' => 27, 'name' => 'ghsCheckIn'],
  298. 'usePtCoupon' => ['id' => 30, 'name' => 'usePtCoupon'],
  299. 'wastage' => ['id' => 35, 'name' => 'wastage'],
  300. //零售采购退款
  301. 'cgRefund' => ['id' => 38, 'name' => 'cgRefund'],
  302. //供货商销售退款
  303. 'saleRefund' => ['id' => 40, 'name' => 'saleRefund'],
  304. 'pd' => ['id' => 45, 'name' => 'pd'],
  305. //供货商的佣金 lqh 2021.12.11
  306. 'brokerage' => ['id' => 46, 'name' => 'brokerage'],
  307. //供货商销售单对账
  308. 'ghsXsClear' => ['id' => 20, 'name' => 'ghsXsClear'],
  309. //城市供货商的预订单多付退款
  310. 'ghsBookRefund' => ['id' => 48, 'name' => 'ghsBookRefund'],
  311. //花店预订退款
  312. 'hdBookRefund' => ['id' => 50, 'name' => 'hdBookRefund'],
  313. //城市供货商的预订单少付补款
  314. 'ghsBookOrderGetBack' => ['id' => 51, 'name' => 'ghsBookOrderGetBack'],
  315. //花店预订补尾款
  316. 'hdBookFinalPay' => ['id' => 52, 'name' => 'hdBookFinalPay'],
  317. 'hdCgPlant' => ['id' => 53, 'name' => 'hdCgPlant'],
  318. //花店订单退款
  319. 'hdOrderRefund' => ['id' => 54, 'name' => 'hdOrderRefund'],
  320. //存入现金
  321. 'inMoney' => ['id' => 55, 'name' => 'inMoney'],
  322. //取出现金
  323. 'outMoney' => ['id' => 56, 'name' => 'outMoney'],
  324. //支出登记
  325. 'expendRegister' => ['id' => 57, 'name' => 'expendRegister'],
  326. //花店销售结账单
  327. 'hdXsClear' => ['id' => 58, 'name' => 'hdXsClear'],
  328. 'hdRefund' => ['id' => 59, 'name' => 'hdRefund'],
  329. 'ljhApply' => ['id' => 60, 'name' => 'ljhApply'],
  330. //供货商结账支出
  331. 'ghsClearExpend' => ['id' => 61, 'name' => 'ghsClearExpend'],
  332. //供货商帮客户充值
  333. 'ghsHelpCustomRecharge' => ['id' => 62, 'name' => 'ghsHelpCustomRecharge'],
  334. //客户让供货商帮忙充值
  335. 'customAskGhsRecharge' => ['id' => 63, 'name' => 'customAskGhsRecharge'],
  336. //供货商帮客户用余额结账
  337. 'ghsHelpCustomUseBalanceClear' => ['id' => 64, 'name' => 'ghsHelpCustomUseBalanceClear'],
  338. //客户请供货商帮忙用余额结账
  339. 'customAskGhsUseBalanceClear' => ['id' => 65, 'name' => 'customAskGhsUseBalanceClear'],
  340. //客户主动向供货商充值
  341. 'customRechargeToGhs' => ['id' => 66, 'name' => 'customRechargeToGhs'],
  342. //供货商采购单售后
  343. 'ghsCgOrderRefund' => ['id' => 67, 'name' => 'ghsCgOrderRefund'],
  344. //供货商采购单结账
  345. 'ghsCgOrderClear' => ['id' => 68, 'name' => 'ghsCgOrderClear'],
  346. //供货商的采购单取消
  347. 'ghsCgCancel' => ['id' => 70, 'name' => 'ghsCgCancel'],
  348. //借库存
  349. 'loanStock' => ['id' => 71, 'name' => 'loanStock'],
  350. //新增预订
  351. 'addBook' => ['id' => 72, 'name' => 'addBook'],
  352. //减少预订
  353. 'delBook' => ['id' => 73, 'name' => 'delBook'],
  354. //供货商采购退款
  355. 'ghsCgRefund' => ['id' => 74, 'name' => 'ghsCgRefund'],
  356. ],
  357. "capitalTypeList" => [//流水类型的对应链接,后台收支明细查看时跳转的链接
  358. 0 => ['link' => '/capital/order-detail', 'name' => '网店', 'orderLink' => '/order/detail', 'id' => 0,],
  359. 2 => ['link' => '/capital/active-order-detail', 'name' => '活动报名', 'id' => 2,],
  360. 4 => ['link' => '/capital/recharge-detail', 'name' => '充值', 'id' => 4,],
  361. 5 => ['link' => '/capital/user-unite', 'name' => '帐号关联', 'id' => 5,],
  362. 6 => ['link' => '/capital/draw-cash', 'name' => '提现', 'id' => 6,],
  363. 7 => ['link' => '/capital/apply-order-detail', 'name' => '接入申请', 'id' => 7,],
  364. 8 => ['link' => '/capital/merge-user', 'name' => '帐号合并', 'id' => 8,],
  365. 9 => ['link' => '/capital/renew', 'name' => '续费', 'id' => 9,],
  366. 10 => ['link' => '/capital/order-detail', 'name' => '订单', 'id' => 10,],
  367. 11 => ['link' => '/capital/purchase-detail', 'name' => '订单', 'id' => 11,],
  368. 12 => ['link' => '/capital/purchase-detail', 'name' => '培训报名', 'id' => 12,],
  369. 20 => ['link' => '', 'name' => '采购结算', 'id' => 20,],
  370. 25 => ['link' => '', 'name' => '采购', 'id' => 25,],
  371. 30 => ['link' => '', 'name' => '使用平台优惠券', 'id' => 30,],
  372. 35 => ['link' => '', 'name' => '报损', 'id' => 35,],
  373. 38 => ['link' => '', 'name' => '采购退款', 'id' => 38,],
  374. 40 => ['link' => '', 'name' => '销售退款', 'id' => 40,],
  375. 45 => ['link' => '', 'name' => '盘点', 'id' => 45,],
  376. 46 => ['link' => '', 'name' => '佣金', 'id' => 46,],
  377. 48 => ['link' => '', 'name' => '预订单多退少补', 'id' => 48,],
  378. 50 => ['link' => '', 'name' => '预订单多退少补', 'id' => 50,],
  379. 51 => ['link' => '', 'name' => '预订单补款', 'id' => 51,],
  380. 52 => ['link' => '', 'name' => '花店预订补尾款', 'id' => 52,],
  381. 53 => ['link' => '', 'name' => '采购盆栽等', 'id' => 53,],
  382. 54 => ['link' => '', 'name' => '退货退款', 'id' => 54,],
  383. 55 => ['link' => '', 'name' => '存入现金', 'id' => 55,],
  384. 56 => ['link' => '', 'name' => '取出现金', 'id' => 56,],
  385. 57 => ['link' => '', 'name' => '支出登记', 'id' => 57,],
  386. 58 => ['link' => '', 'name' => '结算', 'id' => 58,],
  387. 59 => ['link' => '', 'name' => '退货退款', 'id' => 59,],
  388. 60 => ['link' => '', 'name' => '零交会报名', 'id' => 60,],
  389. 61 => ['link' => '', 'name' => '结账支出', 'id' => 61,],
  390. 62 => ['link' => '', 'name' => '充值', 'id' => 62,],
  391. 63 => ['link' => '', 'name' => '充值', 'id' => 63,],
  392. 64 => ['link' => '', 'name' => '结账', 'id' => 64,],
  393. 65 => ['link' => '', 'name' => '结账', 'id' => 65,],
  394. 66 => ['link' => '', 'name' => '充值', 'id' => 66,],
  395. 67 => ['link' => '', 'name' => '采购售后', 'id' => 67,],
  396. 68 => ['link' => '', 'name' => '采购单结账', 'id' => 68,],
  397. 70 => ['link' => '', 'name' => '采购单取消', 'id' => 70,],
  398. 71 => ['link' => '', 'name' => '借库存', 'id' => 71,],
  399. 72 => ['link' => '', 'name' => '新增预订', 'id' => 72,],
  400. 73 => ['link' => '', 'name' => '减少预订', 'id' => 73,],
  401. 74 => ['link' => '', 'name' => '采购退款', 'id' => 74,],
  402. ],
  403. //用户来源
  404. 'userSource' => [
  405. 0 => 'official',
  406. 1 => 'alipay',
  407. 2 => 'mini',
  408. 3 => 'app',
  409. ],
  410. 'userSourceGetId' => [
  411. 'official' => ['id' => 0, 'name' => 'official'],
  412. 'alipay' => ['id' => 1, 'name' => 'alipay'],
  413. 'mini' => ['id' => 2, 'name' => 'mini'],
  414. 'app' => ['id' => 3, 'name' => 'app'],
  415. ],
  416. //达达取消原因
  417. 'dadaCancelReason' => [
  418. [
  419. 'id' => 1,
  420. 'reason' => '没有配送员接单',
  421. ],
  422. [
  423. 'id' => 2,
  424. 'reason' => '配送员没来取货',
  425. ],
  426. [
  427. 'id' => 3,
  428. 'reason' => '配送员态度太差',
  429. ],
  430. [
  431. 'id' => 4,
  432. 'reason' => '顾客取消订单',
  433. ],
  434. [
  435. 'id' => 5,
  436. 'reason' => '订单填写错误',
  437. ],
  438. [
  439. 'id' => 34,
  440. 'reason' => '配送员让我取消此单',
  441. ],
  442. [
  443. 'id' => 35,
  444. 'reason' => '配送员不愿上门取货',
  445. ],
  446. [
  447. 'id' => 36,
  448. 'reason' => '我不需要配送了',
  449. ],
  450. [
  451. 'id' => 37,
  452. 'reason' => '配送员以各种理由表示无法完成订单',
  453. ],
  454. ],
  455. //来源
  456. 'fromType' => [
  457. 'shop' => 1,//门店
  458. 'mall' => 2,//商城
  459. 'friend' => 3,//微信客服号
  460. 'mt' => 4,//美团
  461. 'elm' => 5,//饿了么
  462. ],
  463. 'fromTypeMap' => [
  464. 1 => '门店',
  465. 2 => '商城',
  466. 3 => '微信',
  467. 4 => '美团',
  468. 5 => '饿了么',
  469. ],
  470. 'expendType' => [
  471. 'dz' => 0,//店租
  472. 'sd' => 1,//水电
  473. 'wy' => 2,//物业
  474. 'hs' => 3,//伙食
  475. 'fz' => 4,//房租
  476. 'qt' => 5,//其它
  477. ],
  478. 'expendTypeMap' => [
  479. 0 => '店租', 1 => '水电', 2 => '物业', 3 => '伙食', 4 => '房租', 5 => '其它', 6 => '物品', 7 => '办公用品'
  480. ],
  481. 'expendTypeList' => [
  482. ['id' => 7, 'name' => '办公用品'],
  483. ['id' => 6, 'name' => '物品'],
  484. ['id' => 0, 'name' => '店租'],
  485. ['id' => 1, 'name' => '水电'],
  486. ['id' => 2, 'name' => '物业'],
  487. ['id' => 3, 'name' => '伙食'],
  488. ['id' => 4, 'name' => '房租'],
  489. ['id' => 5, 'name' => '其它'],
  490. ],
  491. ];
  492. //取配置文件的值
  493. public static function getDict($category, $first = null, $second = null, $mainId = 0)
  494. {
  495. $respond = self::$data[$category];
  496. if (isset($first) && isset($second)) {
  497. if (isset($respond[$first][$second]) == false) {
  498. util::fail("没有找到相应字典 category:{$category} first:{$first} second:{$second}");
  499. }
  500. return $respond[$first][$second];
  501. }
  502. if (isset($first)) {
  503. if (isset($respond[$first]) == false) {
  504. util::fail("没有找到相应字典 category:{$category} first:{$first}");
  505. }
  506. return $respond[$first];
  507. }
  508. if (getenv('YII_ENV') == 'production') {
  509. //老油云漫梦金鹏 徐记花卉 的德邦不需要收运费,搜索关键词dbNoFee
  510. if (in_array($mainId, [20528, 10866]) && $category == 'transCost') {
  511. $respond = [
  512. ['sign' => 0, 'perKiloCost' => 0],
  513. ['sign' => 1, 'perKiloCost' => 0],
  514. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
  515. ['sign' => 3, 'perKiloCost' => 0],
  516. ['sign' => 4, 'perKiloCost' => 0],
  517. ['sign' => 5, 'perKiloCost' => 0],
  518. ];
  519. }
  520. } else {
  521. }
  522. return $respond;
  523. }
  524. //列出所有的常量 ssh 2021.3.18
  525. public static function get($mainId = 0)
  526. {
  527. $respond = self::$data;
  528. //根据环境获取小程序原始ID
  529. if (isset($respond['miniOriginalId']['dev'])) {
  530. $respond['miniOriginalId']['current'] = $respond['miniOriginalId']['dev'];
  531. }
  532. if (getenv('YII_ENV') == 'production') {
  533. if (isset($respond['miniOriginalId']['product'])) {
  534. $respond['miniOriginalId']['current'] = $respond['miniOriginalId']['product'];
  535. }
  536. }
  537. if (getenv('YII_ENV') != 'production') {
  538. $respond['hdMiniMessage'] = $respond['hdMiniMessageDev'];
  539. }
  540. if (getenv('YII_ENV') == 'production') {
  541. //老油云漫梦金鹏的德邦不需要收运费,搜索关键词dbNoFee
  542. if (in_array($mainId, [20528, 10866])) {
  543. $respond['transCost'] = [
  544. ['sign' => 0, 'perKiloCost' => 0],
  545. ['sign' => 1, 'perKiloCost' => 0],
  546. ['sign' => 2, 'option' => [['num' => 20, 'amount' => 0], ['num' => 30, 'amount' => 0], ['num' => 50, 'amount' => 0], ['num' => 70, 'amount' => 0], ['num' => 100, 'amount' => 0]]],
  547. ['sign' => 3, 'perKiloCost' => 0],
  548. ['sign' => 4, 'perKiloCost' => 0],
  549. ['sign' => 5, 'perKiloCost' => 0],
  550. ];
  551. }
  552. } else {
  553. }
  554. return $respond;
  555. }
  556. }