考虑以下因素:
a)你想要一些机密性(因为没有告诉每个人你收到了多少订单).
b)您想校验位(例如,使用费尔赫夫算法)在年底,所以你可以很容易地分辨拼错和帮助条形码扫描时,如果是这样的情况下,处理错误.
c)您需要考虑时间,以便消费者可以对订单的顺序进行排序.
d)它应该是全数字还是十六进制等?
E)东西,你的消费者可以说通过电话支持团队和刚好够识别顺序,不必问,因为安全问题的电子邮件等,工作人员.
我很想听听一些意见.
PS:任何为解决这个问题而设计的算法对我来说都是一个有效的答案.
我有类似的东西
<?php
class AccountController extends Zend_Controller_Action
{
public function init()
{
if(!Zend_Auth::getInstance()->hasIdentity()) {
//need to forward to the auth action in another controller,
//instead of dispatching to whatever action it would be dispatched to
}
}
...
Run Code Online (Sandbox Code Playgroud)
我不能使用$ this - > _ forward("action"),因为auth操作不在同一个控制器中,而在init中,转发必须是在同一个控制器中的动作.有任何想法吗?
$request->setModuleName('module')
->setControllerName('controller')
->setActionName('action');
Run Code Online (Sandbox Code Playgroud)
也行不通.我试图清除这些参数,但我仍然没有.
model-view-controller routing zend-framework controller dispatcher